You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a 'Bring your own LLM provider' section: lead with the <NAME>_API_KEY
convention + one example, collapse the full provider table, and point at the
engine's registry (agents/llm_config.py) as the source of truth so the README
can't rot. Scope the 'bare OpenRouter slug' model-format note to OpenRouter.
**Model format:** a bare OpenRouter slug (e.g. `anthropic/claude-sonnet-4`) — exactly one `/`, **no `openrouter/` prefix** (that's the LiteLLM form; the action rejects it early).
90
+
**Model format (OpenRouter):** a bare OpenRouter slug (e.g. `anthropic/claude-sonnet-4`) — exactly one `/`, **no `openrouter/` prefix** (that's the LiteLLM form; the action rejects it early). Other providers use their own native model ids.
91
+
92
+
## Bring your own LLM provider
93
+
94
+
OpenRouter is the default, but you can use any provider the engine supports — set `llm_provider` and pass that provider's key:
95
+
96
+
```yaml
97
+
with:
98
+
llm_provider: anthropic # omit for OpenRouter (default)
99
+
llm_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
100
+
```
101
+
102
+
`llm_provider: <name>` hands your key to the engine as `<NAME>_API_KEY`, and the engine auto-selects that provider. Set **exactly one** key per run.
This table mirrors the engine and may lag it — the source of truth is the engine's provider registry ([`agents/llm_config.py`](https://github.com/CodeBoarding/CodeBoarding/blob/main/agents/llm_config.py)). Any provider it adds that follows the `<NAME>_API_KEY` convention works here with no action change.
120
+
121
+
</details>
91
122
92
123
## When it runs
93
124
@@ -100,7 +131,8 @@ The command needs the `issue_comment` trigger and runs from your **default branc
100
131
101
132
| Input | Default | Description |
102
133
|---|---|---|
103
-
| `llm_api_key` | required | LLM API key. OpenRouter is the default provider. |
134
+
| `llm_api_key` | required | Your LLM provider API key (see `llm_provider`). |
135
+
| `llm_provider` | `openrouter` | Provider for the key — mapped to `<NAME>_API_KEY` (e.g. `anthropic`, `openai`, `google`). |
104
136
| `github_token` | `${{ github.token }}` | Token used to post/update the PR comment. |
0 commit comments