技能潮 SkillTide 提交收录
官方说明开源项目2 天前
henrikdukefoss/agent-provider-configs

henrikdukefoss/agent-provider-configs

Copy-paste configs to point 31 AI coding agents (Claude Code, OpenCode, Codex CLI, Cline, Kilo, Aider,…
在 GitHub 查看 ↗直链 · 无中转页
官方说明Copy-paste configs to point 31 AI coding agents (Claude Code, OpenCode, Codex CLI, Cline, Kilo, Aider, Hermes, Pi, Qwen Code, Grok Build, jcode, nanoMuse, Octop, Rakazo and more) at any OpenAI- or Anthropic-compatible API. Sourced gotchas and provider base URLs.
★ 数取值
0 ★ · henrikdukefoss/agent-provider-configs · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-15 · 最近见到 2026-10-16 · 共见到 2 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 henrikdukefoss/agent-provider-configs;我们收录于 2026-10-15;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

agent-provider-configs

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Copy-paste configs for pointing AI coding agents at any OpenAI-compatible or Anthropic-compatible API:
a gateway, a router, another model vendor, or a server on your own machine.
31 agents plus the Magpie provider manager, 21 provider presets, a source link for every key. Last checked: **2026-10-15**.
How do I point an AI coding agent at a custom OpenAI-compatible API?
You need three values: a **base URL**, an **API key**, and a **model ID** that the provider serves.
Where they go depends on the agent:
- **Claude Code** reads env vars: ANTHROPIC_BASE_URL (no /v1), ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL. It only speaks the Anthropic Messages API. Its aliases and background calls request their own Claude model IDs, so also set every ANTHROPIC_DEFAULT_*_MODEL; claude-code-provider does this and checks the result with one request.
- **OpenCode** and **Kilo Code** take a provider block in opencode.json / kilo.json with "npm": "@ai-sdk/openai-compatible" and options.baseURL.
- **Codex CLI** takes a [model_providers. ] table in ~/.codex/config.toml. It only speaks the OpenAI **Responses** API now; wire_api = "chat" was removed.
- **Cline, Roo Code, Cursor, Copilot, JetBrains** have an "OpenAI Compatible" option in their settings UI.
- Most other agents take a JSON or YAML provider entry. Find yours in the table, copy the block, replace the three placeholders.
Placeholders used everywhere: https://YOUR_PROVIDER/v1, YOUR_PROVIDER_API_KEY, MODEL_ID. Real values for 21 providers are in Provider presets.
The four mistakes behind most "404" and "model not found" errors
1. **/v1 or no /v1.** OpenAI-style base URLs end in /v1 (the client appends /chat/completions). Claude Code, Zed's anthropic_compatible, Goose, Roo Code and Factory's anthropic type want the Anthropic base URL **without** /v1 because they append /v1/messages themselves. OpenCode, Kilo, Continue and Crush use AI SDK or similar clients that want it **with** /v1. Each section below says which.
2. **Wrong protocol.** Codex CLI needs /v1/responses. Claude Code needs /v1/messages. An endpoint that only serves /v1/chat/completions works with neither.
3. **Model ID.** Use the exact ID from the provider's GET /v1/models, including any prefix (anthropic/..., accounts/fireworks/models/...). Aider additionally needs an openai/ prefix in front of it.
4. **A key from somewhere else wins.** A saved login, a stale OPENAI_BASE_URL, or a settings-file env block can override what you exported. The gotchas per agent list the known cases.
check.sh tests a base URL, key and model ID in one command before you touch an agent.
Contents
| Agent | Config location | Chat Completions | Responses | Anthropic Messages | Checked |
| --- | --- | :---: | :---: | :---: | --- |
| Claude Code | env vars or ~/.claude/settings.json | | | yes | CLI run |
| OpenCode | opencode.json | yes | yes | yes | CLI run |
| Codex CLI | ~/.codex/config.toml | removed | yes | | CLI run |
| Cline | extension settings, cline auth | yes | | yes (extension) | docs, source |
| Kilo Code | ~/.config/kilo/kilo.json | yes | yes | yes | docs, source |
| Roo Code | extension settings, import JSON | yes | | yes | docs, source |
| Continue | ~/.continue/config.yaml | yes | yes | yes | docs, source |
| Aider | env vars, .aider.conf.yml | yes | | via LiteLLM | docs, source |
| Hermes Agent | ~/.hermes/config.yaml | yes | yes | yes | docs, source |
| OpenClaw | ~/.openclaw/openclaw.json | yes | yes | yes | docs, source |
| Pi | ~/.pi/agent/models.json | yes | yes | yes | docs, source |
| oh-my-pi | ~/.omp/agent/models.yml | yes | yes | yes | docs, source |
| Crush | crushrc (or legacy crush.json) | yes | yes | yes | docs, source |
| Goose | ~/.config/goose/custom_providers/*.json | yes | yes | yes | docs, source |
| Qwen Code | ~/.qwen/settings.json | yes | yes | yes | docs |
| Factory Droid | ~/.factory/settings.json | yes | yes | yes | docs |
| Amp | Settings → Model Routing → Custom URL | yes | yes | yes | docs |
| Grok Build | ~/.grok/config.toml | yes | yes | yes | docs, source |
| DeepSeek Harness | Settings → Models, cordis.patch.yml | yes | yes | yes | docs |
| Command Code | /connect, ~/.commandcode/providers.json | yes | yes | yes | docs |
| jcode | jcode provider add → ~/.jcode/config.toml | yes | | | docs, source |
| Docker Agent | agent YAML, ~/.config/cagent/config.yaml | yes | yes | yes | docs, source |
| Zed | settings.json | yes | yes | yes | docs, source |
| Cursor (BYOK) | Settings → Models | yes | | | docs, staff posts |
| GitHub Copilot in VS Code | chatLanguageModels.json | yes | yes | yes | docs |
来源
github · https://github.com/henrikdukefoss/agent-provider-configs
按领域浏览
开源项目
收录于
昨天

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引