run command starts Claude Code locally with real-time streaming to the Anyware cloud. This is the default command - running anyware is equivalent to anyware run.
Usage
Options
| Option | Description |
|---|---|
-p, --path <path> | Working directory (default: current directory) |
-m, --model <model> | Model to use via OpenRouter (e.g., openai/gpt-4o) |
--resume <sessionId> | Resume a Claude Code session |
--continue | Continue the last conversation |
--remote | Start in remote mode |
Examples
Basic usage
Start Claude Code in the current directory:Specify working directory
Use a specific model
Resume a previous session
Continue last conversation
Start in remote mode
Start with web dashboard in control:Pass Claude Code arguments
Additional arguments are passed through to Claude Code:What Happens
- Login check - Verifies you’re authenticated
- Session creation - Creates a session on the Anyware server
- WebSocket connection - Connects for real-time streaming
- Claude Code spawn - Starts Claude Code locally with hooks
- Mode loop - Handles switching between local and remote modes
Mode Switching
By default, you start in local mode. See Local vs Remote Mode for details on:- How input routing works
- Switching between modes
- Using the
--remoteflag
Environment
The command sets up Claude Code with:| Variable | Value |
|---|---|
ANTHROPIC_BASE_URL | Anyware LLM proxy URL |
ANTHROPIC_AUTH_TOKEN | Your authentication token |
Exit
Exit by:- Ctrl+C - Graceful shutdown
- Exiting Claude Code - Normal exit
See Also
- Quickstart - Getting started guide
- Sessions - Session lifecycle
- Custom Models - Using different models