DataEyesAI
Official SiteConsoleDocs HomeGetting StartedDeveloper Tools
AI Models APITerms & Policies
Official SiteConsoleDocs HomeGetting StartedDeveloper Tools
AI Models APITerms & Policies
  1. Developer Tools
  • Claude Code
  • Claude Code for VS Code
  • Codex
  • OpenClaw
  • OpenCode
  • Cline
  • Gemini CLI
  • Grok CLI
  • n8n
  • AutoClaw
  • Other tools
  • Claude Code 400 troubleshooting
  1. Developer Tools

OpenCode

OpenCode is an open-source AI coding tool for the terminal. Override the addresses of its built-in OpenAI and Anthropic providers to use both GPT and Claude models on DataEyesAI.

Before you begin#

SettingValue
Base URLhttps://studio.dataeyes.ai/v1 (use this for both the OpenAI and Anthropic providers)
API keyYour Model API key, starting with sk-
Example modelsopenai/gpt-6-sol, anthropic/claude-sonnet-5-5

1. Install OpenCode#

npm (recommended on Windows)
Install script (macOS / Linux)
Run opencode --version. If it prints a version number, the installation succeeded.

2. Configure the address#

Open or create ~/.config/opencode/opencode.json (on Windows: C:\Users\<username>\.config\opencode\opencode.json) and add:
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "options": { "baseURL": "https://studio.dataeyes.ai/v1" }
    },
    "anthropic": {
      "options": { "baseURL": "https://studio.dataeyes.ai/v1" }
    }
  }
}

3. Configure the API key#

Open or create ~/.local/share/opencode/auth.json (on Windows: C:\Users\<username>\.local\share\opencode\auth.json) and add:
{
  "openai": { "type": "api", "key": "sk-xxx" },
  "anthropic": { "type": "api", "key": "sk-xxx" }
}
Create the directories manually if they don't exist.

4. Verify#

If it prints a result, the setup works. In the interactive UI, type /models to switch models: models prefixed with openai/ use GPT, and models prefixed with anthropic/ use Claude.

FAQ#

Invalid API Key
Connection timeout or Fetch failed
Model not found
Previous
OpenClaw
Next
Cline