콘텐츠로 이동
캐스털리 오픈콘솔

코딩 에이전트

OpenCode 설정

OpenCode에서 Modelflare를 OpenAI 호환 공급자로 구성합니다.

기본이 아닌 그룹이 gpt-5.6-sol에 액세스할 수 있는 Modelflare API 키를 생성합니다.

터미널 창PowerShell
choco install opencode
opencode --version

프로젝트 디렉터리를 입력한 다음 시스템에 대한 명령을 실행하세요.

터미널 창PowerShell
$config = @'
{
"$schema": "https://opencode.ai/config.json",
"model": "modelflare/gpt-5.6-sol",
"provider": {
"modelflare": {
"npm": "@ai-sdk/openai-compatible",
"name": "Modelflare",
"options": { "baseURL": "https://modelflare.dev/v1" },
"models": {
"gpt-5.6-sol": { "name": "GPT 5.6 Sol" }
}
}
}
}
'@
$utf8NoBom = New-Object System.Text.UTF8Encoding -ArgumentList $false
[System.IO.File]::WriteAllText(
(Join-Path (Get-Location) "opencode.json"),
$config,
$utf8NoBom
)

동일한 프로젝트 디렉터리에서 OpenCode를 시작합니다.

터미널 창bash
opencode

/connect을 입력하고 Other를 선택한 다음 공급자 ID를 modelflare로 설정하고 Modelflare API 키를 붙여넣습니다.

/models을 입력하고 modelflare/gpt-5.6-sol을 선택한 후 다음을 보냅니다.

Text
Reply with one short greeting.

정상적인 응답은 설정이 완료되었음을 의미합니다.