Setup
DiscreteStack does not store your prompts or responses. Conversation content stays on your machine. We keep only non-content metadata needed to operate the service. If you need support, see Debug.

OpenCode

Configuration

Save this file, then replace the placeholder key — or paste your key in the header and copy.

~/.config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "myprovider": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DiscreteStack",
      "options": {
        "baseURL": "https://api.discretestack.com/v1",
        "apiKey": "sk-your-api-key"
      },
      "models": {
        "discretestack-stable-max": {
          "name": "discretestack-stable-max",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        },
        "discretestack-stable": {
          "name": "discretestack-stable",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        },
        "discretestack-stable-fast": {
          "name": "discretestack-stable-fast",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "limit": {
            "context": 200000,
            "output": 8192
          }
        }
      }
    }
  }
}

Replace sk-your-api-key with your DiscreteStack API key before saving.