CLI Reference¶
Complete reference for all ringlet commands.
Global Options¶
| Option | Description |
|---|---|
--log-level <LEVEL> | Set log level (error, warn, info, debug, trace) |
--json | Output in JSON format |
-h, --help | Print help information |
-V, --version | Print version information |
init¶
Interactive setup wizard for new users.
| Option | Description |
|---|---|
--skip-daemon | Skip daemon connection check |
--no-profile | Skip profile creation |
-y, --yes | Accept defaults without prompting |
--json | Output in JSON format |
The init wizard will:
- Check daemon connectivity
- Detect installed agents and their versions
- Display available providers
- Guide you through creating your first profile
Example:
$ ringlet init
Welcome to Ringlet!
This wizard will help you get started with managing coding agents.
Checking daemon connection... connected.
Detecting installed agents...
Installed agents:
[x] Claude Code (1.0.23)
Not installed:
[ ] Grok CLI
[ ] Codex CLI
Available providers:
- self: Agent's Own Auth
- anthropic: Anthropic API (requires API key)
- minimax: MiniMax API (requires API key)
- openrouter: OpenRouter (requires API key)
Would you like to create your first profile? [Y/n] y
--- Create Your First Profile ---
Select an agent: Claude Code (1.0.23)
Select a provider: self - Agent's Own Auth
Profile alias: my-project
Profile 'my-project' created successfully!
Run it with: ringlet profiles run my-project
==================================================
Setup complete!
Next steps:
ringlet profiles list View your profiles
ringlet profiles run <alias> Run an agent session
ringlet --help See all available commands
agents¶
Discover and manage AI coding agents.
agents list¶
List all detected agents.
| Option | Description |
|---|---|
--json | Output as JSON |
Example:
$ ringlet agents list
ID Name Installed Version Profiles
claude Claude Code Yes 1.0.0 3
codex Codex CLI Yes 0.5.0 1
grok Grok CLI No - 0
agents inspect¶
Show detailed information about an agent.
Example:
$ ringlet agents inspect claude
ID: claude
Name: Claude Code
Binary: claude
Version: 1.0.0
Binary Path: /usr/local/bin/claude
Profile Strategy: home-wrapper
Profile Home: ~/.claude-profiles/{alias}
Supports Hooks: Yes
Default Model: claude-sonnet-4
providers¶
Manage API providers.
providers list¶
List all available providers.
| Option | Description |
|---|---|
--json | Output as JSON |
Example:
$ ringlet providers list
ID Name Type Default Model
anthropic Anthropic anthropic claude-sonnet-4
minimax MiniMax anthropic-compatible MiniMax-M2.1
openai OpenAI openai gpt-4o
openrouter OpenRouter openai-compatible auto
providers inspect¶
Show detailed information about a provider.
Example:
$ ringlet providers inspect minimax
ID: minimax
Name: MiniMax
Type: anthropic-compatible
Endpoints:
international: https://api.minimax.io/anthropic (default)
china: https://api.minimaxi.com/anthropic
Auth: MINIMAX_API_KEY
Models: MiniMax-M2.1
profiles¶
Create, manage, and run profiles.
profiles create¶
Create a new profile.
| Option | Description |
|---|---|
-p, --provider <ID> | Provider to use (required) |
--endpoint <ID> | Specific endpoint for multi-region providers |
--model <MODEL> | Override default model |
--hooks <LIST> | Enable hooks (comma-separated) |
--mcp <LIST> | Enable MCP servers (comma-separated) |
--bare | Create minimal profile without defaults |
--proxy | Enable request routing proxy |
--template <NAME> | Use a registry template |
--dry-run | Show what would be created without creating |
Examples:
# Basic profile
ringlet profiles create claude my-project --provider anthropic
# With specific endpoint and model
ringlet profiles create claude china-work --provider minimax --endpoint china --model MiniMax-M2.1
# With hooks and MCP servers
ringlet profiles create claude dev --provider anthropic --hooks auto_format --mcp filesystem,github
# With proxy enabled
ringlet profiles create claude smart --provider anthropic --proxy
profiles list¶
List all profiles.
| Option | Description |
|---|---|
--agent <ID> | Filter by agent |
--json | Output as JSON |
Example:
$ ringlet profiles list
Alias Provider Endpoint Model Last Used
work-anthropic anthropic default claude-sonnet-4 2026-01-08T11:23:51Z
work-minimax minimax international MiniMax-M2.1 2026-01-08T09:18:12Z
profiles inspect¶
Show profile details.
Example:
$ ringlet profiles inspect work-minimax
Alias: work-minimax
Agent: claude
Provider: minimax
Endpoint: international
Model: MiniMax-M2.1
Created: 2026-01-05T10:00:00Z
Last Used: 2026-01-08T09:18:12Z
Profile Home: ~/.claude-profiles/work-minimax
API Key: ****...****
profiles run¶
Run a profile.
| Option | Description |
|---|---|
--remote | Run in daemon with PTY (enables web terminal access) |
--cols <N> | Terminal columns (default: 80, only with --remote) |
--rows <N> | Terminal rows (default: 24, only with --remote) |
--no-sandbox | Disable sandboxing (remote sessions are sandboxed by default) |
--bwrap-flags <FLAGS> | Custom bwrap flags (Linux only, comma-separated) |
Sandboxing (Remote Sessions):
Remote terminal sessions are sandboxed by default for security:
- Linux: Uses bwrap (bubblewrap)
- macOS: Uses sandbox-exec
- Windows: No sandboxing available
The default sandbox allows:
- Read-only access to system directories (
/usr,/bin,/lib,/etc) - Read-write access to home directory, working directory, and
/tmp - Network access (required for API calls)
Examples:
# Basic run (foreground)
ringlet profiles run my-project
# With additional agent arguments
ringlet profiles run my-project -- /path/to/code --verbose
# Run as remote terminal session (accessible via web UI)
ringlet profiles run my-project --remote
# Remote session without sandbox (full system access)
ringlet profiles run my-project --remote --no-sandbox
# Remote session with custom bwrap flags (Linux only)
ringlet profiles run my-project --remote --bwrap-flags="--unshare-net"
# Custom bwrap with multiple flags
ringlet profiles run my-project --remote --bwrap-flags="--unshare-net,--ro-bind /data /data"
profiles delete¶
Delete a profile.
profiles env¶
Export profile environment variables.
Example:
terminal¶
Manage remote terminal sessions. Terminal sessions allow you to run agents in the daemon and access them through the web UI or CLI.
Sandboxing
Terminal sessions are sandboxed by default for security. Use --no-sandbox when creating sessions via ringlet profiles run --remote if you need full system access. See the Terminal Guide for details.
terminal list¶
List all terminal sessions.
Example:
$ ringlet terminal list
SESSION ID PROFILE STATE CLIENTS
--------------------------------------------------------------------------------
46e15057-abbb-42cd-ad0e-52471a76ef9f my-project running 1
terminal info¶
Show detailed information about a session.
Example:
$ ringlet terminal info 46e15057-abbb-42cd-ad0e-52471a76ef9f
Session ID: 46e15057-abbb-42cd-ad0e-52471a76ef9f
Profile: my-project
State: running
PID: 12345
Size: 80x24
Clients: 1
Created: 2026-01-22T00:22:45Z
terminal kill¶
Terminate a terminal session.
terminal attach¶
Attach to a terminal session from the CLI (not yet implemented - use web UI).
aliases¶
Manage shell aliases for quick profile access.
aliases install¶
Install a shell alias for a profile.
Example:
aliases uninstall¶
Remove a shell alias.
aliases list¶
List installed aliases.
proxy¶
Manage proxy instances for request routing.
proxy enable¶
Enable proxy for a profile.
proxy disable¶
Disable proxy for a profile.
proxy start¶
Start a proxy instance.
proxy stop¶
Stop a proxy instance.
proxy stop-all¶
Stop all proxy instances.
proxy restart¶
Restart a proxy instance.
proxy status¶
Show proxy status.
proxy config¶
Show proxy configuration.
proxy logs¶
View proxy logs.
| Option | Description |
|---|---|
--lines <N> | Number of lines to show (default: 50) |
proxy route add¶
Add a routing rule.
| Option | Description |
|---|---|
--priority <N> | Rule priority (higher = checked first) |
Examples:
ringlet proxy route add work "long-context" "tokens > 100000" "minimax/claude-3-sonnet" --priority 10
ringlet proxy route add work "default" "always" "anthropic/claude-sonnet-4"
proxy route list¶
List routing rules.
proxy route remove¶
Remove a routing rule.
proxy alias set¶
Set a model alias.
proxy alias list¶
List model aliases.
proxy alias remove¶
Remove a model alias.
hooks¶
Manage profile hooks.
hooks add¶
Add a hook to a profile.
| Parameter | Description |
|---|---|
ALIAS | Profile alias |
EVENT | Event type: PreToolUse, PostToolUse, Notification, Stop |
MATCHER | Tool pattern (e.g., "Bash|Write" or "*") |
COMMAND | Shell command to execute |
Example:
hooks list¶
List hooks for a profile.
hooks remove¶
Remove a hook.
hooks import¶
Import hooks from a file.
hooks export¶
Export hooks to JSON.
usage¶
Track token usage and costs.
usage (default)¶
Show usage summary.
| Option | Description |
|---|---|
--period <PERIOD> | Time period: today, yesterday, week, month, 7d, 30d, all |
--profile <ALIAS> | Filter by profile |
--model <MODEL> | Filter by model |
Example:
$ ringlet usage --period week
Usage Summary (This Week)
─────────────────────────
Total Tokens: 125,000
Input: 80,000
Output: 45,000
Estimated Cost: $1.10
usage daily¶
Show daily breakdown.
| Option | Description |
|---|---|
--period <PERIOD> | Time period |
usage models¶
Show usage by model.
usage profiles¶
Show usage by profile.
usage export¶
Export usage data.
| Option | Description |
|---|---|
--format <FORMAT> | Output format: json, csv |
--period <PERIOD> | Time period |
usage import-claude¶
Import usage data from Claude Code.
| Option | Description |
|---|---|
--claude-dir <PATH> | Path to .claude directory |
registry¶
Manage the GitHub-based registry.
registry sync¶
Synchronize registry metadata.
| Option | Description |
|---|---|
--force | Force refresh even if cached |
--offline | Use cached data only |
registry inspect¶
Show registry status.
registry pin¶
Pin to a specific version.
daemon¶
Manage the background daemon.
daemon status¶
Show daemon status.
daemon start¶
Start the daemon.
| Option | Description |
|---|---|
--stay-alive | Keep running indefinitely |
daemon stop¶
Stop the daemon.
scripts¶
Manage Rhai configuration scripts.
scripts test¶
Test a configuration script.
| Option | Description |
|---|---|
--provider <ID> | Provider to use |
--alias <ALIAS> | Profile alias for context |
export / import¶
Backup and restore ringlet configuration.
export¶
Export configuration.
import¶
Import configuration.