Command-line tool for Maritime — deploy and manage AI agents from your terminal.
npm install -g @anthropic-ai/maritime-cliOr run directly with npx:
npx @anthropic-ai/maritime-cli status# Authenticate with your API key
maritime login --key mk_your_api_key
# Create a new agent config
maritime init --name my-agent
# Deploy
maritime deploy
# Check status
maritime statusGenerate an API key from your Maritime dashboard, then:
maritime login --key mk_...Alternatively, set the MARITIME_API_KEY environment variable for CI/CD:
export MARITIME_API_KEY=mk_...
maritime statusStore your API key locally.
maritime login --key mk_...
echo mk_... | maritime login # pipe from stdinRemove the stored API key.
Show the current API key prefix and API URL.
Generate a maritime.toml configuration file in the current directory.
maritime init
maritime init --name my-agentDeploy an agent from maritime.toml. Creates the agent if it doesn't exist, redeploys if it does.
maritime deploy
maritime deploy --dir ./my-projectList all agents, or show details for a specific agent.
maritime status # list all
maritime status my-agent # detail viewView agent logs.
maritime logs my-agent
maritime logs my-agent -n 100 # last 100 lines
maritime logs my-agent -l error # errors only
maritime logs my-agent -f # follow (poll)Start a stopped agent.
Stop a running agent.
Restart an agent.
Delete an agent and all its resources. Prompts for confirmation unless -y is passed.
maritime destroy my-agent
maritime destroy my-agent -y # skip confirmationManage environment variables.
maritime env list my-agent
maritime env set my-agent API_KEY=sk-123
maritime env set my-agent SECRET=val --secret
maritime env remove my-agent API_KEYShow deployment history.
maritime deployments my-agent
maritime deployments my-agent -n 20maritime.toml defines your agent:
name = "my-agent"
framework = "auto" # auto | crewai | langgraph | openclaw | docker
# image = "my-image:latest" # custom Docker image
# repo = "https://github.com/user/repo"
# branch = "main"
tier = "smart" # smart | fast
[env]
API_KEY = "your-key"| Variable | Description |
|---|---|
MARITIME_API_KEY |
API key (overrides stored key) |
MARITIME_API_URL |
API base URL (default: https://api.maritime.sh) |
MIT