- 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.
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.
What you need
1. Create a PromptAvenue API key
In the PromptAvenue dashboard, open the API keys page and select Create API key. Copy the full key when it appears.
2. Set the OpenAI-compatible base URL in OpenCode
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.
{
"$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"
}
}
}
}
}
3. Verify OpenCode in Orca native chat
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.
Common errors
| Symptom | What to check |
|---|---|
| Provider or model missing | Check that the workspace loads the project config, the OpenCode executable is version 2, and the configured model uses the promptavenue/ prefix. |
| Authentication error | Check that the OpenCode process launched by Orca has PROMPTAVENUE_API_KEY. |
| Project default model changed | Start a new chat after changing the project default model. |
| Balance or rate-limit error | Check the dashboard balance if the error mentions funds. For rate limits, wait before retrying. |