# OpenCode

> Adicione a NotHoly como provider no opencode.json.


O `notholy run opencode` precisa do CLI da NotHoly instalado e conectado à sua conta ([Instalar o CLI](/pt-br/cli/install)) e do próprio OpenCode: `npm i -g opencode-ai`. A configuração manual abaixo só precisa de uma chave de API.

```bash
notholy run opencode
```

Ou adicione o provider em `~/.config/opencode/opencode.json`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "model": "notholy/notholy-specter",
  "provider": {
    "notholy": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "NotHoly",
      "options": { "baseURL": "https://api.notholy.com/v1" },
      "models": {
        "notholy-specter": { "name": "NotHoly Specter", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 131072 } },
        "notholy-pulse": { "name": "NotHoly Pulse Flash", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 131072 } },
        "notholy-vector": { "name": "NotHoly Vector Flash 1017", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 131072 } },
        "notholy-wisp": { "name": "NotHoly Wisp Flash", "tool_call": true, "reasoning": true, "limit": { "context": 1048576, "output": 131072 } }
      }
    }
  }
}
```

Depois rode `/connect` dentro do OpenCode, escolha **Other**, informe o ID `notholy` e cole sua chave.

Se os limites mudarem, confira com `GET /v1/models`.

## Próximos passos

- [API de modelos](/pt-br/api/models)
