anomalyco / anomalyco/opencode

[FEATURE]: docs example for PZERO OpenAI-compatible custom provider

Open
#45,832 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 28, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.

Search: repo:anomalyco/opencode pzero is empty.

Describe the enhancement you want to request

Please add a short PZERO example under Custom provider in packages/web/src/content/docs/providers.mdx, same shape as Atomic Chat / the generic OpenAI-compatible block.

PZERO is an OpenAI-compatible inference API (POST /v1/chat/completions). Users already convert with /connect + a custom provider id. A named example in the docs is enough. This is not a request to bundle a first-party plugin.

Fund first: sign in at https://pzero.studio/agents, top up (min 1 USDC on Base), copy a pzero_ key. Sign-in is free. There are no starter credits. Usage is prepaid. Every AI Credit is at least 20% off $1 list.

opencode.json (provider id must match /connect):

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "pzero": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "PZERO",
      "options": {
        "baseURL": "https://api.pzero.studio/v1"
      },
      "models": {
        "deepseek-v4-flash": {
          "name": "DeepSeek V4 Flash"
        }
      }
    }
  }
}

Then:

  1. /connect, pick provider id pzero, paste the pzero_ key
  2. /models and select a live text id from GET https://api.pzero.studio/v1/models (public)

Use @ai-sdk/openai-compatible for chat completions. Do not use @ai-sdk/openai unless you are targeting /v1/responses.

If you would rather this live in models.dev so /connect lists PZERO without a paste step, the provider.toml would be:

name = "PZERO"
npm = "@ai-sdk/openai-compatible"
api = "https://api.pzero.studio/v1"
env = ["PZERO_API_KEY"]
doc = "https://docs.pzero.studio/agents/quickstart"

I cannot open a models.dev PR from this account (no public fork). Happy to supply model.toml rows from the live catalog if a maintainer wants them.

Smoke test after a funded key:

curl -sS -X POST "https://api.pzero.studio/v1/chat/completions" \
  -H "Authorization: Bearer $PZERO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello from PZERO"}],"stream":false}'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.