Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -655,13 +655,33 @@ For the built-in OpenAI login flow, jcode opens a local callback on
<img width="2877" height="1762" alt="Screenshot from 2026-04-02 14-28-51" src="https://github.com/user-attachments/assets/530684c0-9d12-4363-aa0e-1b39a0d4e1be" />
The above image is the first page of provider logins

### Supported provider
### Provider surface

- **Native / first-party style providers:** `claude`, `openai`, `copilot`, `gemini`, `azure`, `alibaba-coding-plan`
- **Aggregator / compatibility providers:** `openrouter`, `orcarouter`, `openai-compatible`
- **Additional provider integrations:** `opencode`, `opencode-go`, `zai` / `kimi`, `302ai`, `baseten`, `cortecs`, `deepseek`, `firmware`, `huggingface`, `moonshotai`, `nebius`, `scaleway`, `stackit`, `groq`, `mistral`, `perplexity`, `togetherai`, `deepinfra`, `fireworks`, `novita`, `minimax`, `xai`, `lmstudio`, `ollama`, `chutes`, `cerebras`, `cursor`, `antigravity`, `google`
jcode's provider surface is **two-tier**:

Jcode also supports easy multi-account switching. Ran out of tokens on your first ChatGPT Pro subscription? /account and quickly switch to your second.
**11 first-class provider adapter crates** under `crates/jcode-provider-*/` — each implements provider-specific streaming, OAuth refresh, and tool/usage handling:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: The blanket claim that all 11 first-class adapter crates implement "OAuth refresh" is not accurate. jcode-provider-bedrock authenticates with AWS SigV4 request signing (see crates/jcode-provider-bedrock/src/lib.rs), not OAuth refresh. This overstates parity across the tier and could mislead a reader into expecting OAuth-based refresh for Bedrock. Consider qualifying the sentence, e.g. "each implements provider-specific streaming and tool/usage handling; most also handle OAuth refresh (Bedrock uses AWS SigV4 instead)."


- `claude` (subscription OAuth) and `anthropic-api` (API key) — `jcode-provider-anthropic` + `jcode-provider-anthropic-runtime`
- `openai` (OAuth, ChatGPT/Codex) and `openai-api` (API key) — `jcode-provider-openai` + `jcode-provider-openai-runtime`
- `gemini` (OAuth + API key) — `jcode-provider-gemini` + `jcode-provider-gemini-runtime`
- `copilot` (GitHub device flow + standard OAuth) — `jcode-provider-copilot` + `jcode-provider-copilot-runtime`
- `openrouter` (live catalog merge) — `jcode-provider-openrouter` + `jcode-provider-openrouter-runtime`
- `bedrock` (AWS sigv4) — `jcode-provider-bedrock`
- `antigravity` (drives the Antigravity CLI binary) — `jcode-provider-antigravity` + `jcode-provider-antigravity-runtime`
- `claude-cli` (reuses Claude Code's CLI as a backend) — `jcode-provider-claude-cli-runtime`
- `cursor` (drives Cursor's local daemon) — `jcode-provider-cursor-runtime`
- `grok-build` (drives the Grok CLI binary) — `jcode-provider-grok-build-runtime`
- `forgecode` (drives the Forge CLI binary) — `jcode-provider-forgecode-runtime`

**An `openai-compatible` profile harness** — any service that speaks OpenAI's `/v1/chat/completions` API works through one shared runtime. Built-in named profiles fill in the base URL and key environment variable for you:

- Aggregators and hosted providers: `orcarouter`, `opencode` (OpenCode Zen), `opencode-go`, `zai` / `kimi`, `302ai`, `baseten`, `cortecs`, `deepseek`, `firmware`, `huggingface`, `moonshotai`, `nebius`, `scaleway`, `stackit`, `groq`, `mistral`, `perplexity`, `togetherai`, `deepinfra`, `fireworks`, `novita`, `minimax`, `xai`, `alibaba-coding-plan`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: The advertised aggregator/hosted list is incomplete relative to the built-in catalog. crates/jcode-provider-metadata/src/catalog.rs defines these openai-compatible profiles that are omitted here: conifer, comtegra, fpt, nvidia-nim, xiaomi-mimo, meta-muse, celeris, and belvedir. The PR's stated goal is an accurate provider surface, so an incomplete list undercuts that. Add the missing eight profiles.

- Local and self-hosted runtimes: `lmstudio`, `ollama`, `chutes`, `cerebras`, plus a generic `openai-compatible` profile for any custom endpoint

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: chutes and cerebras are categorized under "Local and self-hosted runtimes", but both are hosted cloud APIs (https://llm.chutes.ai/v1 and https://api.cerebras.ai/v1 per crates/jcode-provider-metadata/src/catalog.rs). This misleads readers about where those endpoints live. Move them to the hosted/aggregator list.

- `azure` — handled by the separate `jcode-azure-auth` credential crate (auth only), pairing with the openai-compatible runtime for the API calls

`jcode login --provider <profile-id>` wires the named profiles; you still pick the model with `/model` (or `--model`). Run `jcode login` with no provider to see the interactive list. **Note:** `openrouter` is listed above in both tiers on purpose — it has a dedicated adapter for live catalog merge and falls back to the openai-compatible path when the merged catalog is empty.

Jcode also supports easy multi-account switching. Ran out of tokens on your first ChatGPT Pro subscription? /account and quickly switch to your second.

---

Expand Down