Skip to main content
Complete reference for the catty command-line interface.

catty login

Authenticate with Catty via your browser.
catty login
Opens your default browser for authentication. Supports email, Google, and enterprise SSO. Credentials are stored at ~/.catty/credentials.json.
You only need to log in once. Tokens are automatically refreshed.

catty logout

Remove stored credentials.
catty logout
Deletes ~/.catty/credentials.json. Run catty login to authenticate again.

catty new

Start a new Claude Code session.
catty new [flags]

Flags

FlagDescription
--no-uploadDon’t upload current directory to the session
--no-sync-backDisable real-time sync of remote changes to local
--api <url>Override API URL (for development)
--agent codexUse Codex instead of Claude Code (experimental)

Examples

# Standard session - uploads current directory
catty new

# Start without uploading workspace
catty new --no-upload

# Start without sync-back
catty new --no-sync-back

# Combine flags
catty new --no-upload --no-sync-back

# Use local API (development)
catty new --api http://127.0.0.1:4815

Behavior

  1. Creates a new cloud machine
  2. Uploads current directory (unless --no-upload)
  3. Starts Claude Code in /workspace
  4. Connects your terminal via WebSocket
  5. Enables sync-back (unless --no-sync-back)

Exit

Press Ctrl+C or type /exit in Claude Code to disconnect.

catty connect

Reconnect to an existing session.
catty connect <label> [flags]

Arguments

ArgumentDescription
labelSession label (e.g., brave-tiger-1234)

Flags

FlagDescription
--no-sync-backDisable sync-back for this connection

Examples

# Reconnect to a session
catty connect brave-tiger-1234

# Reconnect without sync-back
catty connect brave-tiger-1234 --no-sync-back
Get session labels from catty list.

catty list

List all your sessions.
catty list

Output

Shows a table with:
  • Session label
  • Status (running, stopped)
  • Created timestamp

Example Output

LABEL                STATUS    CREATED
brave-tiger-1234     running   2 hours ago
swift-falcon-5678    stopped   1 day ago
clever-dolphin-9012  running   5 minutes ago

catty stop

Stop a running session.
catty stop <label>

Arguments

ArgumentDescription
labelSession label to stop

Example

catty stop brave-tiger-1234
Stopping a session destroys the cloud machine. Files not synced back are lost.

catty version

Print the CLI version.
catty version

Example Output

catty version 0.1.5

Environment Variables

VariableDescriptionDefault
CATTY_API_ADDROverride API URLhttps://catty-api.fly.dev

Example

# Use local API
export CATTY_API_ADDR=http://127.0.0.1:4815
catty new

Exit Codes

CodeMeaning
0Success
1General error
2Authentication required (run catty login)

Global Behavior

Authentication

All commands except login, logout, and version require authentication. If not logged in, you’ll see:
Error: Not logged in. Run 'catty login' to authenticate.

Token Refresh

If your access token expires during a command, Catty automatically refreshes it using the stored refresh token. This happens transparently.

Supported Platforms

PlatformArchitecture
macOSIntel (amd64), Apple Silicon (arm64)
Linuxx64 (amd64), ARM64
Windows support is not yet available.