Files
claude-code-router/docs/docs/cli/commands/start.md
musistudio 160594a8d6 init doc
2025-12-27 07:58:01 +08:00

1.5 KiB

sidebar_position
sidebar_position
1

ccr start

Start the Claude Code Router server.

Usage

ccr start [options]

Options

Option Alias Description
--port <number> -p Port to listen on (default: 8080)
--config <path> -c Path to configuration file
--daemon -d Run as daemon (background process)
--log-level <level> -l Log level (fatal/error/warn/info/debug/trace)

Examples

Start with default settings

ccr start

Start on custom port

ccr start --port 3000

Start with custom config

ccr start --config /path/to/config.json

Start as daemon

ccr start --daemon

Start with debug logging

ccr start --log-level debug

Environment Variables

You can also configure the server using environment variables:

Variable Description
PORT Port to listen on
CONFIG_PATH Path to configuration file
LOG_LEVEL Logging level
CUSTOM_ROUTER_PATH Path to custom router function
HOST Host to bind to (default: 0.0.0.0)

Output

When started successfully, you'll see:

Claude Code Router is running on http://localhost:8080
API endpoint: http://localhost:8080/v1