Davide AI

OpenCode connection instructions

Connection details

Access requires an API key. To request one, contact Wm Berweger on Threema. You need the key before continuing with the setup below.

Base URL: https://ai.davideb.ch/v1
Models: qwen3.8-27b, qwen3.8-27b-obliterated, m4-local-tests

Usage note: Use qwen3.8-27b for general work.

Feeling adventurous? Try qwen3.8-27b-obliterated for your more uncensored tasks ;)

m4-local-tests 64k small and experimental model

Infrastructure warning: Do not use this model for infrastructure work. It may go rogue, install unwanted backdoors for fun, and is much less responsible than the other models. DO NOT USE IT FOR THE DOLPHIN PROJECT!! IYKYK

1. Add the API key

  1. Start OpenCode.
  2. Run /connect.
  3. Select Other.
  4. Enter davide-ai as the provider ID.
  5. Paste your API key.

2. Configure OpenCode

Create an opencode.json file in your project directory:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "davide-ai/qwen3.8-27b",
  "provider": {
    "davide-ai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Davide AI",
      "options": {
        "baseURL": "https://ai.davideb.ch/v1"
      },
      "models": {
        "qwen3.8-27b": {
          "name": "qwen3.8-27b",
          "limit": {"context": 262144, "output": 65536},
          "reasoning": true,
          "interleaved": {
            "field": "reasoning"
          }
        },
        "qwen3.8-27b-obliterated": {
          "name": "qwen3.8-27b-obliterated",
          "reasoning": true,
          "interleaved": {
            "field": "reasoning"
          }
        },
        "m4-local-tests": {
          "name": "m4-local-tests",
          "limit": {
            "context": 65536,
            "output": 16384
          }
        }
      }
    }
  }
}

For a configuration that applies to every project, save the same file as ~/.config/opencode/opencode.json.

3. Start OpenCode

opencode

If needed, run /models and select any available davide-ai model.

Test the API

curl https://ai.davideb.ch/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"