Documentation

Your familiar SDK. A clear path from API key to first response.

OpenCode

Choose a guide or find an API method. Copy examples to your project; this page does not execute requests.

OpenCode

Configure an OpenAI-compatible Chat Completions connection.

Prepare your API key

Paste your Quanteex project key in place of YOUR_QUANTEEX_KEY. Use the app’s private key field or your personal configuration file. Do not put a real key in a shared project.

Connection settings

Open this personal config file and merge the settings below with your existing entries. Replace the placeholder, save and restart the client. The default model is only the initial selection.

~/.config/opencode/opencode.json

JSON
Show full configuration (25 lines)
{
  "$schema": "https://opencode.ai/config.json",
  "model": "quanteex/gpt-6-astra",
  "provider": {
    "quanteex": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Quanteex",
      "options": {
        "baseURL": "https://api.quanteex.com/v1",
        "apiKey": "YOUR_QUANTEEX_KEY",
        "headers": {
          "X-Quanteex-Output-Policy": "provider_maximum"
        }
      },
      "models": {
        "gpt-6-astra": {
          "name": "GPT 6 Astra"
        },
        "gpt-6.2-sol": {
          "name": "GPT-6.2 Sol"
        }
      }
    }
  }
}

Switch models

Keep the same connection and key. Copy the exact model ID and its limits from the Quanteex dashboard.

OpenCode
opencode.json → provider.quanteex.models
/models → Quanteex → GPT 6 Astra / GPT-6.2 Sol

Check compatibility

Use a model that supports the selected API and the features your client sends. A successful connection setup does not enable unsupported tools, images or reasoning settings.

Troubleshooting

For 401, check the key. For 402, check the available project balance and budget. For 400, check the model, API format and extra parameters. Start with the Quickstart request to separate an API problem from a client configuration problem.

Client documentation

The linked client documentation covers installation and version-specific settings.

Official documentation · OpenCode

Search documentation