forked from Selig/openclaw-skill
Initial commit: OpenClaw Skill Collection
6 custom skills (assign-task, dispatch-webhook, daily-briefing, task-capture, qmd-brain, tts-voice) with technical documentation. Compatible with Claude Code, OpenClaw, Codex CLI, and OpenCode.
This commit is contained in:
30
openclaw-knowhow-skill/docs/models/openrouter.md
Normal file
30
openclaw-knowhow-skill/docs/models/openrouter.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# OpenRouter
|
||||
|
||||
OpenRouter is a unified API service that consolidates access to numerous language models through a single endpoint and authentication key. The platform maintains OpenAI compatibility, enabling users to leverage existing OpenAI SDKs by simply modifying the base URL configuration.
|
||||
|
||||
## Setup Instructions
|
||||
|
||||
**Command line onboarding:**
|
||||
|
||||
```bash
|
||||
openclaw onboard --auth-choice apiKey --token-provider openrouter --token "$OPENROUTER_API_KEY"
|
||||
```
|
||||
|
||||
**Configuration example:**
|
||||
|
||||
```json5
|
||||
{
|
||||
env: { OPENROUTER_API_KEY: "sk-or-..." },
|
||||
agents: {
|
||||
defaults: {
|
||||
model: { primary: "openrouter/anthropic/claude-sonnet-4-5" },
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Key Points
|
||||
|
||||
- Model identifiers follow the format: `openrouter/<provider>/<model>`
|
||||
- Additional model and provider options are documented in the model-providers concepts section
|
||||
- Authentication uses Bearer token methodology with your API key
|
||||
Reference in New Issue
Block a user