Quick Start
Use the--model flag to specify a model:
Model Format
Models are specified in the formatprovider/model-name:
anthropic/claude-sonnet-4openai/gpt-4ogoogle/gemini-prometa-llama/llama-3-70b
Available Models
Anthropic (Claude)
| Model | ID |
|---|---|
| Claude Opus 4 | anthropic/claude-opus-4 |
| Claude Sonnet 4 | anthropic/claude-sonnet-4 |
| Claude 3.5 Sonnet | anthropic/claude-3.5-sonnet |
| Claude 3 Haiku | anthropic/claude-3-haiku |
OpenAI
| Model | ID |
|---|---|
| GPT-4o | openai/gpt-4o |
| GPT-4o Mini | openai/gpt-4o-mini |
| GPT-4 Turbo | openai/gpt-4-turbo |
| o1 Preview | openai/o1-preview |
| o1 Mini | openai/o1-mini |
| Model | ID |
|---|---|
| Gemini Pro | google/gemini-pro |
| Gemini Pro Vision | google/gemini-pro-vision |
| Gemini 1.5 Pro | google/gemini-1.5-pro |
Meta (Llama)
| Model | ID |
|---|---|
| Llama 3 70B | meta-llama/llama-3-70b |
| Llama 3 8B | meta-llama/llama-3-8b |
| Llama 2 70B | meta-llama/llama-2-70b-chat |
Mistral
| Model | ID |
|---|---|
| Mistral Large | mistralai/mistral-large |
| Mistral Medium | mistralai/mistral-medium |
| Mixtral 8x7B | mistralai/mixtral-8x7b |
Setting a Default Model
Environment Variable
Set a default model using an environment variable:Per-Session Override
The--model flag always overrides the default:
Model Considerations
Compatibility
Not all models have the same capabilities:| Feature | Claude | GPT-4 | Gemini | Llama |
|---|---|---|---|---|
| Code generation | Excellent | Excellent | Good | Good |
| Context window | 200K | 128K | 1M | 4K-128K |
| Tool use | Yes | Yes | Yes | Limited |
| Vision | Yes | Yes | Yes | No |
Performance
Different models have different latencies:- Fastest: Claude Haiku, GPT-4o Mini, Llama 3 8B
- Balanced: GPT-4o, Claude Sonnet 4
- Highest Quality: Claude Opus 4, GPT-4 Turbo, o1
Best Practices
Match Model to Task
Use Shell Aliases
Create shell aliases for common configurations:Monitor Usage
Track your token usage in the web dashboard at anyware.run to optimize costs.Troubleshooting
Model Not Working as Expected
Different models have different behaviors. If a model isn’t performing well:- Check the model’s known limitations
- Try adjusting your prompts for that model
- Fall back to Claude for complex coding tasks
Invalid Model Error
If you see an error about an invalid model:- Check the model ID format (
provider/model-name) - Verify the model is available on OpenRouter
- Try a known working model like
anthropic/claude-sonnet-4
See Also
- anyware run - CLI reference for the run command
- Pricing - Usage and billing information