코딩 에이전트
OpenCode 설정
OpenCode에서 Modelflare를 OpenAI 호환 공급자로 구성합니다.
1. API 키 생성
섹션 제목: “1. API 키 생성”기본이 아닌 그룹이 gpt-5.6-sol에 액세스할 수 있는 Modelflare API 키를 생성합니다.
2. OpenCode 설치
섹션 제목: “2. OpenCode 설치”choco install opencodeopencode --versioncurl -fsSL https://opencode.ai/install | bashopencode --version3. opencode.json 생성
섹션 제목: “3. opencode.json 생성”프로젝트 디렉터리를 입력한 다음 시스템에 대한 명령을 실행하세요.
$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)cat > opencode.json << 'EOF'{ "$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" } } } }}EOF4. API 키 연결
섹션 제목: “4. API 키 연결”동일한 프로젝트 디렉터리에서 OpenCode를 시작합니다.
opencode/connect을 입력하고 Other를 선택한 다음 공급자 ID를 modelflare로 설정하고 Modelflare API 키를 붙여넣습니다.
5. 모델 선택 및 테스트
섹션 제목: “5. 모델 선택 및 테스트”/models을 입력하고 modelflare/gpt-5.6-sol을 선택한 후 다음을 보냅니다.
Reply with one short greeting.정상적인 응답은 설정이 완료되었음을 의미합니다.