OpenCode

Configura llmtap como provider OpenAI-compatible personalizado en OpenCode.

Configuración

opencode.json
{"$schema":"https://opencode.ai/config.json","provider":{"llmtap":{"npm":"@ai-sdk/openai-compatible","name":"llmtap","options":{"baseURL":"https://www.llmtap.dev/api/v1","apiKey":"{env:LLMTAP_API_KEY}"},"models":{"gpt-5.6-sol":{"name":"GPT 5.6 Sol"}}}}}
bash
export LLMTAP_API_KEY='sk-live-your-key'

Errores

Define LLMTAP_API_KEY en el entorno antes de iniciar OpenCode. Si faltan modelos, confirma los IDs que devuelve GET /api/v1/models.