johnalbertini14-glitch/openclaw-skills / skills/0xjordansg-yolo/openclaw-aisa-affordable-llm-model-tokens
llm-router
VerifiedUnified LLM Gateway - One API for 70+ AI models. Route to GPT, Claude, Gemini, Qwen, Deepseek, Grok and more with a single API key.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.7 KB |
| SKILL.md | skill md | 11.8 KB |
| _meta.json | config | 412 B |
| scripts/llm_router_client.py | script | 13.4 KB |
README.md
View on GitHub# OpenClaw LLM Router 🧠
**Unified LLM Gateway for autonomous agents. Powered by AIsa.**
One API key. 70+ models. Route requests to GPT, Claude, Gemini, Qwen, Deepseek, Grok and more.
## Quick Start
```bash
# Set your API key
export AISA_API_KEY="your-key"
# Simple chat completion
python3 scripts/llm_router_client.py chat --model gpt-4.1 --message "Hello!"
# Stream response
python3 scripts/llm_router_client.py chat --model claude-3-sonnet --message "Write a poem" --stream
# Vision analysis
python3 scripts/llm_router_client.py vision --model gpt-4o --image "https://example.com/image.jpg" --prompt "Describe this"
# Compare models
python3 scripts/llm_router_client.py compare --models "gpt-4.1,claude-3-sonnet" --message "Explain AI"
# List models
python3 scripts/llm_router_client.py models
```
## Using with OpenAI SDK
```python
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ["AISA_API_KEY"],
base_url="https://api.aisa.one/v1"
)
response = client.chat.completions.create(
model="gpt-4.1", # Or claude-3-sonnet, gemini-2.0-flash, etc.
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
```
## Supported Models
| Family | Models |
|--------|--------|
| OpenAI | gpt-4.1, gpt-4o, gpt-4o-mini, o1, o1-mini, o3-mini |
| Anthropic | claude-3-5-sonnet, claude-3-opus, claude-3-sonnet |
| Google | gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash |
| Alibaba | qwen-max, qwen-plus, qwen2.5-72b-instruct |
| Deepseek | deepseek-chat, deepseek-coder, deepseek-v3, deepseek-r1 |
| xAI | grok-2, grok-beta |
> Check [marketplace.aisa.one/pricing](https://marketplace.aisa.one/pricing) for full model list.
See [SKILL.md](SKILL.md) for full documentation.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |