Skip to main content

CLI Commands and Parameters

PicoClaw is a lightweight personal AI assistant. This page documents all CLI commands and parameters supported by the picoclaw binary.

tip

For chat slash commands (e.g. /help, /clear), see Chat Command Reference.

Global Parameters

ParameterDescription
--no-colorDisable colored output (preserves border layout)

You can also disable colors via the NO_COLOR environment variable or TERM=dumb.


Command Overview

CommandAliasDescription
picoclaw onboardoInitialize config and workspace
picoclaw agentInteract with the AI agent
picoclaw authManage authentication (login, logout, status)
picoclaw gatewaygStart the PicoClaw gateway
picoclaw statussShow PicoClaw status
picoclaw croncManage scheduled tasks
picoclaw mcpManage MCP server configurations
picoclaw migrateMigrate from other tools to PicoClaw
picoclaw skillsManage skills
picoclaw modelView or change the default model
picoclaw updateUpdate PicoClaw
picoclaw versionvShow version information

picoclaw onboard

Initialize PicoClaw configuration and workspace.

picoclaw onboard [flags]

Parameters

ParameterDescription
--encEnable credential encryption (generates SSH key and prompts for passphrase)

Examples

picoclaw onboard
picoclaw onboard --enc

picoclaw agent

Interact directly with the AI agent.

picoclaw agent [flags]

Parameters

ParameterShortDefaultDescription
--debug-dfalseEnable debug logging
--message-mSend a single message (non-interactive mode)
--session-scli:defaultSession key
--modelModel to use

Examples

# Interactive mode
picoclaw agent

# Non-interactive mode
picoclaw agent -m "Hello, how are you?"

# Specify model
picoclaw agent --model gpt-5.2 -m "Explain quantum computing"

picoclaw auth

Manage authentication, including login, logout, and status.

picoclaw auth [command]

Subcommands

  • login - Login
  • logout - Logout
  • status - Show authentication status
  • models - Show available models
  • weixin - Connect WeChat personal account
  • wecom - Connect WeCom (Enterprise WeChat)

picoclaw auth login

Login via OAuth or paste token.

picoclaw auth login [flags]

Parameters

ParameterShortDescription
--provider-pRequired. Login provider (openai, anthropic, google-antigravity, antigravity)
--device-codeUse device code flow (for headless environments)
--no-browserDo not auto-open browser for OAuth login
--setup-tokenUse Anthropic's setup-token flow

Examples

picoclaw auth login -p openai
picoclaw auth login -p anthropic --setup-token
picoclaw auth login -p openai --device-code

picoclaw auth logout

Remove stored credentials.

picoclaw auth logout [flags]

Parameters

ParameterShortDescription
--provider-pProvider to logout from (openai, anthropic); empty = logout all

Examples

picoclaw auth logout -p openai
picoclaw auth logout

picoclaw auth status

Show current authentication status.

picoclaw auth status

picoclaw auth models

Show available models.

picoclaw auth models

picoclaw auth weixin

Connect WeChat personal account via QR code.

picoclaw auth weixin [flags]

Parameters

ParameterDefaultDescription
--base-urlhttps://ilinkai.weixin.qq.com/iLink API base URL
--proxyHTTP proxy URL (e.g. http://localhost:7890)
--timeout300Login timeout in seconds

Examples

picoclaw auth weixin
picoclaw auth weixin --proxy http://localhost:7890

picoclaw auth wecom

Scan WeCom QR code and configure channels.wecom.

picoclaw auth wecom [flags]

Parameters

ParameterDefaultDescription
--timeout5mTimeout waiting for QR code confirmation

Examples

picoclaw auth wecom
picoclaw auth wecom --timeout 10m

picoclaw gateway

Start the PicoClaw gateway service.

picoclaw gateway [flags]

Parameters

ParameterShortDefaultDescription
--debug-dfalseEnable debug logging
--no-truncate-TfalseDisable string truncation in debug logs (must be used with --debug)
--allow-empty-EfalseContinue startup even when no default model is configured
--hostGateway bind host address (overrides gateway.host config)

Examples

picoclaw gateway
picoclaw gateway -d
picoclaw gateway -d -T
picoclaw gateway --host 0.0.0.0

picoclaw status

Show current PicoClaw status.

picoclaw status

picoclaw cron

Manage scheduled tasks.

tip

For detailed documentation on schedule types, execution modes, and configuration, see Scheduled Tasks & Cron Jobs.

picoclaw cron [command]

Subcommands

  • list - List all scheduled jobs
  • add - Add a new job
  • remove - Remove a job by ID
  • enable - Enable a job
  • disable - Disable a job

picoclaw cron add

picoclaw cron add [flags]

Parameters

ParameterShortDescription
--name-nRequired. Job name
--message-mRequired. Message to send to the agent
--every-eRun every N seconds
--cron-cCron expression (e.g. 0 9 * * *)
--toRecipient
--channelDelivery channel

Note: --every and --cron are mutually exclusive; one must be specified.

Examples

# Run every 60 seconds
picoclaw cron add -n "health-check" -m "Check system health" -e 60

# Run daily at 9am
picoclaw cron add -n "morning-report" -m "Generate morning report" -c "0 9 * * *"

# Specify delivery channel
picoclaw cron add -n "reminder" -m "Take a break" -e 1800 --channel wecom --to user123

Other cron subcommands

picoclaw cron list
picoclaw cron remove <job-id>
picoclaw cron enable <job-id>
picoclaw cron disable <job-id>

picoclaw mcp

Manage MCP (Model Context Protocol) server configurations.

picoclaw mcp [command]

Subcommands

  • add - Add or update an MCP server
  • remove - Remove an MCP server
  • list - List configured MCP servers
  • edit - Open config in editor
  • test - Test MCP server connection
  • show - Show MCP server details

picoclaw mcp add

Add or update an MCP server.

picoclaw mcp add [flags] <name> <command-or-url> [args...]

Parameters

ParameterShortDefaultDescription
--env-eEnvironment variable in KEY=value format (repeatable)
--env-filePath to environment variable file (recommended for secrets)
--header-HHTTP header in Name: Value or Name=Value format (repeatable)
--transport-tstdioTransport type: stdio, http, or sse
--force-ffalseOverwrite existing server without prompting
--deferredfalseMark as deferred loading (tools hidden until explicitly activated)
--no-deferredfalseMark as non-deferred (tools always active)

Examples

# Add stdio MCP server
picoclaw mcp add my-server /path/to/server arg1 arg2

# Add http MCP server
picoclaw mcp add remote-server https://example.com/mcp --transport http

# Add with environment variables
picoclaw mcp add my-server /path/to/server -e API_KEY=xxx -e DEBUG=true

# Use env file
picoclaw mcp add my-server /path/to/server --env-file .env

# Force overwrite
picoclaw mcp add my-server /path/to/new-server --force

picoclaw mcp remove

Remove an MCP server.

picoclaw mcp remove <name>

picoclaw mcp list

List configured MCP servers.

picoclaw mcp list [flags]

Parameters

ParameterDefaultDescription
--statusfalsePing enabled servers and show live status
--timeout5sTimeout per status check

Examples

picoclaw mcp list
picoclaw mcp list --status
picoclaw mcp list --status --timeout 10s

picoclaw mcp edit

Open the PicoClaw config file in $EDITOR.

picoclaw mcp edit

Note: Requires the EDITOR environment variable to be set.


picoclaw mcp test

Test MCP server connection.

picoclaw mcp test <name> [flags]

Parameters

ParameterDefaultDescription
--timeout5sConnection timeout

Examples

picoclaw mcp test my-server
picoclaw mcp test my-server --timeout 10s

picoclaw mcp show

Show MCP server details and tool list.

picoclaw mcp show <name> [flags]

Parameters

ParameterDefaultDescription
--timeout10sConnection timeout

Examples

picoclaw mcp show my-server
picoclaw mcp show my-server --timeout 15s

picoclaw migrate

Migrate from other tools (e.g. OpenClaw) to PicoClaw.

picoclaw migrate [flags]

Parameters

ParameterDefaultDescription
--dry-runfalseShow what would be migrated without making changes
--fromopenclawMigration source (e.g. openclaw)
--refreshfalseRe-sync workspace files from OpenClaw
--config-onlyfalseMigrate config only, skip workspace files
--workspace-onlyfalseMigrate workspace files only, skip config
--forcefalseSkip confirmation prompts
--source-home~/.openclawOverride source directory
--target-home~/.picoclawOverride target directory

Examples

# Default migration
picoclaw migrate

# Preview migration
picoclaw migrate --dry-run

# Config only
picoclaw migrate --config-only

# Force migration
picoclaw migrate --force

picoclaw skills

Manage skills.

picoclaw skills [command]

Subcommands


picoclaw skills list

List installed skills.

picoclaw skills list

picoclaw skills install

Install from GitHub or registry.

picoclaw skills install <github> [flags]
picoclaw skills install --registry <name> <slug>

Parameters

ParameterDescription
--registryInstall from specified registry

Examples

# Install from GitHub
picoclaw skills install sipeed/picoclaw-skills/weather

# Install from registry
picoclaw skills install --registry clawhub github

picoclaw skills install-builtin

Install all built-in skills to workspace.

picoclaw skills install-builtin

picoclaw skills list-builtin

List available built-in skills.

picoclaw skills list-builtin

picoclaw skills remove

Remove an installed skill.

picoclaw skills remove <name>

Aliases: rm, uninstall

Examples

picoclaw skills remove weather
picoclaw skills rm weather
picoclaw skills uninstall weather

Search available skills.

picoclaw skills search [query]

Examples

# List all skills
picoclaw skills search

# Search for a specific skill
picoclaw skills search weather

picoclaw skills show

Show skill details.

picoclaw skills show <name>

Examples

picoclaw skills show weather

picoclaw model

View or change the default model.

picoclaw model [model_name] [command]

Parameters

ParameterDescription
model_nameOptional. Model name to set as default

Subcommands

  • add - Add a model from an OpenAI-compatible endpoint

Examples

# Show current default model
picoclaw model

# Set default model
picoclaw model gpt-5.2
picoclaw model claude-sonnet-4.6
picoclaw model local-model

picoclaw model add

Add a model from an OpenAI-compatible endpoint and set it as default.

picoclaw model add [flags]

Parameters

ParameterShortDefaultDescription
--api-base-bRequired. API base URL
--api-key-kRequired. API key
--model-mModel ID; skips interactive selection and network calls when set
--name-ncustom-preferLocal alias, written to model_list and used as default model name
--typeopenai-compatibleEndpoint type (currently only openai-compatible)

Examples

# Interactive model selection
picoclaw model add -b https://api.openai.com/v1 -k sk-xxx

# Specify model directly
picoclaw model add -b http://localhost:8000/v1 -k dummy -m my-model -n local

picoclaw update

Update PicoClaw to the latest version.

picoclaw update

picoclaw version

Show version information.

picoclaw version

Environment Variables

VariableDescription
NO_COLORSet to any non-empty value to disable colored output
TERMSet to dumb to disable colored output
TZSet timezone
EDITOREditor for picoclaw mcp edit command
GATEWAY_HOSTGateway bind host address (can be overridden by --host flag)

Configuration File

PicoClaw's config file is located at ~/.picoclaw/config.json by default. You can view and edit it with:

# Show config path
picoclaw status

# Edit config
picoclaw mcp edit

picoclaw-launcher Parameters

The picoclaw-launcher binary provides the GUI launcher with the following parameters:

ParameterDescriptionExample
-consoleRun in terminal mode (no tray GUI), prints login hint/token source in console startup outputpicoclaw-launcher -console
-publicListen on 0.0.0.0, allow LAN devices to access WebUIpicoclaw-launcher -public
-no-browserDo not auto-open browser on startuppicoclaw-launcher -no-browser
-port <port>Specify launcher port (default 18800)picoclaw-launcher -port 19999
-lang <en|zh>Set launcher UI languagepicoclaw-launcher -lang zh
[config.json]Optional positional config pathpicoclaw-launcher ./config.json

Common combinations:

# Headless/SSH server: run in console mode and expose to LAN
picoclaw-launcher -console -no-browser -public

# Custom port with explicit config file
picoclaw-launcher -port 19999 ./config.json

Getting Help

Get detailed help for any command:

picoclaw --help
picoclaw <command> --help
picoclaw <command> <subcommand> --help

Examples:

picoclaw mcp add --help
picoclaw cron add --help
picoclaw model add --help