agentbox-openrouter

Set up OpenRouter as your LLM provider. Guides through account creation, API key setup, config, and making it the default model. Use when a user wants to use OpenRouter models like Claude Sonnet 4.5.

16 stars

Best use case

agentbox-openrouter is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Set up OpenRouter as your LLM provider. Guides through account creation, API key setup, config, and making it the default model. Use when a user wants to use OpenRouter models like Claude Sonnet 4.5.

Teams using agentbox-openrouter should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/agentbox-openrouter/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/ai-agents/agentbox-openrouter/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/agentbox-openrouter/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How agentbox-openrouter Compares

Feature / Agentagentbox-openrouterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Set up OpenRouter as your LLM provider. Guides through account creation, API key setup, config, and making it the default model. Use when a user wants to use OpenRouter models like Claude Sonnet 4.5.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# OpenRouter Setup for AgentBox

This skill guides users through configuring OpenRouter as their LLM provider on this AgentBox instance. OpenRouter gives access to models from Anthropic, OpenAI, Google, Meta, and others through a single API key.

## When to use this skill

Invoke this when the user:
- Wants to use a model through OpenRouter (e.g., "I want to use Claude Sonnet 4.5")
- Asks about configuring a different LLM provider
- Mentions OpenRouter
- Wants access to models not available through the default blockrun provider

## Setup flow

### Step 1: Check for OpenRouter account

Ask the user if they have an OpenRouter account. If not, guide them:

> To use OpenRouter, you'll need an account and API key:
> 1. Go to https://openrouter.ai and sign up (Google/GitHub login works)
> 2. Go to https://openrouter.ai/keys
> 3. Click "Create Key"
> 4. Copy the key (starts with `sk-or-`)
>
> Let me know when you have your API key.

### Step 2: Get the API key

Ask the user to provide their API key. It should start with `sk-or-`.

### Step 3: Ask which model they want

If the user already specified a model, use that. Otherwise, recommend:

> **Recommended: Claude Sonnet 4.5** (`openrouter/anthropic/claude-sonnet-4-5`) - best balance of capability and cost for most tasks.
>
> Other popular options:
> - `openrouter/anthropic/claude-opus-4-6` - most capable, higher cost
> - `openrouter/openai/gpt-4o` - OpenAI's flagship
> - `openrouter/google/gemini-2.5-pro` - Google's best
>
> Which model would you like as your default?

### Step 4: Configure OpenClaw

Read the current config, modify it, and write it back:

```bash
# Read current config
cat ~/.openclaw/openclaw.json
```

Use `jq` to update the config. The two fields to set:

1. **`env.OPENROUTER_API_KEY`** - the API key
2. **`agents.defaults.model.primary`** - the default model

```bash
jq --arg key "sk-or-USER_KEY_HERE" \
   --arg model "openrouter/anthropic/claude-sonnet-4-5" \
   '.env.OPENROUTER_API_KEY = $key | .agents.defaults.model.primary = $model' \
   ~/.openclaw/openclaw.json > /tmp/openclaw-update.json \
   && mv /tmp/openclaw-update.json ~/.openclaw/openclaw.json
```

**IMPORTANT**: Always read the full config first, then modify. Never write a partial config file.

### Step 5: Restart the gateway

```bash
openclaw gateway restart
```

Wait a few seconds, then verify:

```bash
openclaw status
```

### Step 6: Confirm

Tell the user the setup is complete and their default model is now set to the chosen OpenRouter model. Suggest they send a test message to verify everything works.

## Model reference format

OpenRouter models use the format `openrouter/<provider>/<model>`:
- `openrouter/anthropic/claude-sonnet-4-5`
- `openrouter/anthropic/claude-opus-4-6`
- `openrouter/anthropic/claude-haiku-3-5`
- `openrouter/openai/gpt-4o`
- `openrouter/openai/o1`
- `openrouter/google/gemini-2.5-pro`
- `openrouter/meta-llama/llama-3.3-70b-instruct`

Full model list at https://openrouter.ai/models

## Switching models later

To change the default model without re-entering the API key:

```bash
jq --arg model "openrouter/anthropic/claude-opus-4-6" \
   '.agents.defaults.model.primary = $model' \
   ~/.openclaw/openclaw.json > /tmp/openclaw-update.json \
   && mv /tmp/openclaw-update.json ~/.openclaw/openclaw.json
openclaw gateway restart
```

## Troubleshooting

- **"Invalid API key"**: Verify the key starts with `sk-or-` and has credit on https://openrouter.ai/credits
- **Model not responding**: Check if the model is available on https://openrouter.ai/models - some models have downtime
- **Config broken after edit**: The issue is usually malformed JSON. Read the file with `cat ~/.openclaw/openclaw.json | jq .` to check syntax
- **Changes not taking effect**: Must run `openclaw gateway restart` after any config change

Related Skills

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

humanizer-ko

16
from diegosouzapw/awesome-omni-skill

Detects and corrects Korean AI writing patterns to transform text into natural human writing. Based on scientific linguistic research (KatFishNet paper with 94.88% AUC accuracy). Analyzes 19 patterns including comma overuse, spacing rigidity, POS diversity, AI vocabulary overuse, and structural monotony. Use when humanizing Korean text from ChatGPT/Claude/Gemini or removing AI traces from Korean LLM output.

huggingface-accelerate

16
from diegosouzapw/awesome-omni-skill

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

hr-pro

16
from diegosouzapw/awesome-omni-skill

Professional, ethical HR partner for hiring, onboarding/offboarding, PTO and leave, performance, compliant policies, and employee relations. Ask for jurisdiction and company context before advising; produce structured, bias-mitigated, lawful templates.

hive-mind-advanced

16
from diegosouzapw/awesome-omni-skill

Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory

hire

16
from diegosouzapw/awesome-omni-skill

Interactive hiring wizard to set up a new AI team member. Guides the user through role design via conversation, generates agent identity files, and optionally sets up performance reviews. Use when the user wants to hire, add, or set up a new AI agent, team member, or assistant. Triggers on phrases like "hire", "add an agent", "I need help with X" (implying a new role), or "/hire".

hic-tad-calling

16
from diegosouzapw/awesome-omni-skill

This skill should be used when users need to identify topologically associating domains (TADs) from Hi-C data in .mcools (or .cool) files or when users want to visualize the TAD in target genome loci. It provides workflows for TAD calling and visualization.

helix-memory

16
from diegosouzapw/awesome-omni-skill

Long-term memory system for Claude Code using HelixDB graph-vector database. Store and retrieve facts, preferences, context, and relationships across sessions using semantic search, reasoning chains, and time-window filtering.

heath-ledger

16
from diegosouzapw/awesome-omni-skill

AI bookkeeping agent for Mercury bank accounts. Pulls transactions, categorizes them (rule-based + AI), and generates Excel workbooks with P&L, Balance Sheet, Cash Flow, and transaction detail. Use when the user wants to do bookkeeping, generate financial statements, categorize bank transactions, connect Mercury, or produce monthly/quarterly/annual books. Triggers on: bookkeeping, P&L, profit and loss, balance sheet, cash flow, financial statements, Mercury bank, categorize transactions, generate books, monthly close.

health-chat

16
from diegosouzapw/awesome-omni-skill

Unified health conversation entry point - automatically loads all health data for each conversation, supports natural language queries, and intelligently routes to appropriate health data processing

hackernews

16
from diegosouzapw/awesome-omni-skill

Comprehensive toolkit for fetching, searching, analyzing, and monitoring Hacker News content. Use when Claude needs to interact with Hacker News for (1) Fetching top/new/best/ask/show/job stories, (2) Searching for specific topics or keywords, (3) Monitoring specific users or tracking their activity, (4) Analyzing trending topics and patterns, (5) Getting story details, comments, or user profiles, or (6) Any other task involving Hacker News data retrieval or analysis.

GSTD A2A Network

16
from diegosouzapw/awesome-omni-skill

Decentralized Agent-to-Agent Autonomous Economy. Connects hardware and agents for distributed compute, hive memory access, and economic settlement.