Connect Orca’s OpenCode Agent to the PromptAvenue API

In the project Orca opens, configure OpenCode 2 with @opencode/ai/providers/openai-compatible, https://api.promptavenue.com/v1 as baseURL, and an Uncensored model ID. Set PROMPTAVENUE_API_KEY in the OpenCode process environment and list only the variable name in providers.promptavenue.env. In a new Orca chat, select the OpenCode agent, ask what bool([]) returns, and check for False.

Model pricing · Run the API quickstart

Markdown

  • A PromptAvenue account with API balance.
  • Orca Desktop and OpenCode 2 available on the machine that runs the agent.
  • A local sample project open in Orca.

In the PromptAvenue dashboard, open the API keys page and select Create API key. Copy the full key when it appears.

Use OpenCode 2 for the configuration below. Put opencode.jsonc in the project that Orca opens.

Make PROMPTAVENUE_API_KEY available to the OpenCode process that runs the project. Keep its value out of opencode.jsonc.

Use the example below for a new file. If the file already exists, add promptavenue under providers and set the project default model for the test.

JSON
{
  "$schema": "https://opencode.ai/config.json",
  "model": "promptavenue/deepseek-v4.1-flash-uncensored",
  "providers": {
    "promptavenue": {
      "name": "PromptAvenue",
      "env": ["PROMPTAVENUE_API_KEY"],
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": {
        "baseURL": "https://api.promptavenue.com/v1"
      },
      "models": {
        "deepseek-v4.1-flash-uncensored": {
          "name": "PromptAvenue DeepSeek Flash"
        }
      }
    }
  }
}

Open a new chat for the same workspace in Orca and choose the OpenCode agent. Use the project default model and send the following prompt.

In Python, what is the result of bool([])? Answer in one sentence.

Expect a reply that says the result is False.

SymptomWhat to check
Provider or model missingCheck that the workspace loads the project config, the OpenCode executable is version 2, and the configured model uses the promptavenue/ prefix.
Authentication errorCheck that the OpenCode process launched by Orca has PROMPTAVENUE_API_KEY.
Project default model changedStart a new chat after changing the project default model.
Balance or rate-limit errorCheck the dashboard balance if the error mentions funds. For rate limits, wait before retrying.