Skip to content

feat(providers): add QCode provider - #14835

Open
ethan-cur wants to merge 3 commits into
anomalyco:devfrom
ethan-cur:add-qcode
Open

ethan-cur wants to merge 3 commits into
anomalyco:devfrom
ethan-cur:add-qcode

Conversation

@ethan-cur

Copy link
Copy Markdown

Summary

Adds QCode (qcode), a multi-model relay for coding tools (Claude Code, Codex CLI, OpenCode). Disclosure: I work on QCode.cc.

Provider

  • OpenAI-compatible base: https://api.qcode.cc/openai/v1 (Responses and Chat Completions; Authorization: Bearer), env QCODE_API_KEY.
  • npm = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses", same pattern as concentrate.
  • doc: https://docs.qcode.cc/en/docs/getting-started/endpoints-and-api-paths (documents the base URLs and which protocols each path serves).
  • Unauthenticated GET /openai/v1/models returns an OpenAI-format JSON 401; with a key it returns the model list.
  • currentColor SVG logo.

Models

All base_model overrides of the OpenAI lab files, served on the Responses API. Reasoning controls copied from the first-party openai/* entries (relay pass-through), limits inherited (the qcode model page lists 922K input / 128K output, same as the lab).

  • gpt-6.2-sol, gpt-6.2-astra, gpt-6.1-sol, gpt-6.1-terra

Pricing per MTok from https://qcode.cc/en/models (retrieved 2026-11-27): input / output / cache write / cache read, with the >272K long-context tier (2x input and cache, 1.5x output), e.g. gpt-6.2-sol $2 / $10 / $2.50 / $0.10.

Checks

  • bun validate passes
  • bun run v1:check: only adds qcode and its 4 models

ethan-cur and others added 2 commits November 27, 2026 13:27
currentColor Q mark from the official qcode.cc favicon geometry
(circle + diagonal tail, square viewBox, no fixed size or colors).
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/qcode/models/gpt-6.1-sol.toml:13 (identical line in gpt-6.1-terra.toml:13, gpt-6.2-astra.toml:13, gpt-6.2-sol.toml:13) - Check: Override-only provider files: after base_model, keep only provider-specific fields and real deltas. Why: tools = { supported = true } restates byte-for-byte the capabilities.tools already in each base lab file (models/openai/gpt-6.1-sol.toml etc.); [capabilities] deep-merges, so the line changes nothing in the resolved output and violates the no-redundant-override requirement in all four new files. Action: Delete the tools line from all four files (the merge inherits supported = true), or replace it with a genuine delta if qcode differs from the lab.
  • [low] [violation] providers/qcode/models/gpt-6.1-sol.toml:13 (applies to the [capabilities] block and header comment of all four model files) - Check: AGENTS.md requires that any PR adding an OpenAI GPT-5+ model on any host check which freeform formats each of the model's APIs accepts and note the evidence in the file's header comment. Why: These are GPT-6.x additions and neither the four header comments nor the PR body address custom tools on qcode's Responses surface; the lab documents text/lark/regex custom tools for these models, and the same-surface peer relay of the exact same models (providers/concentrate/models/gpt-6.1-sol.toml:9, probed) publishes freeform = ["text", "lark", "regex"], so the total silence is unexplained rather than a documented rejection. Action: Verify custom tools on qcode's Responses API and either set the working freeform formats with the source noted in each header comment (lab docs plus the peer-relay evidence is acceptable per AGENTS.md, no live probe required) or note in the headers why freeform is left out (custom tools rejected or not offered on this host).

Replace the tools.supported-only restatement of the lab files with a
freeform text/lark/regex delta sourced from lab docs and the concentrate
peer relay, and note that evidence in each header comment.
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 27, 2026

This branch was previously deployed

1 inactive deployment
release — 0d460345 Deployed Nov 27, 2026 by ethan-cur via review #21258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant