Agent Command
Managing ElizaOS agents through the CLI - list, configure, start, stop, and update agents
Agent Command
Manage ElizaOS agents.
Usage
Subcommands
Subcommand | Aliases | Description | Required Options | Additional Options |
---|---|---|---|---|
list | ls | List available agents | -j, --json , -r, --remote-url <url> , -p, --port <port> | |
get | g | Get agent details | -n, --name <name> | -j, --json , -o, --output [file] , -r, --remote-url , -p, --port |
start | s | Start an agent with a character profile | One of: -n, --name , --path , --remote-character | -r, --remote-url <url> , -p, --port <port> |
stop | st | Stop an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
remove | rm | Remove an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
set | Update agent configuration | -n, --name <name> AND one of: -c, --config OR -f, --file | -r, --remote-url <url> , -p, --port <port> | |
clear-memories | clear | Clear all memories for an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
Options Reference
Common Options (All Subcommands)
-r, --remote-url <url>
: URL of the remote agent runtime-p, --port <port>
: Port to listen on
Output Options (for list
and get
)
-j, --json
: Output as JSON format instead of the default table format.-o, --output [file]
: For theget
command, saves the agent’s configuration to a JSON file. If no filename is provided, defaults to{name}.json
.
Get Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Start Specific Options
-n, --name <name>
: Name of an existing agent to start--path <path>
: Path to local character JSON file--remote-character <url>
: URL to remote character JSON file
Stop/Remove Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Set Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)-c, --config <json>
: Agent configuration as JSON string-f, --file <path>
: Path to agent configuration JSON file
Clear Memories Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Usage
Subcommands
Subcommand | Aliases | Description | Required Options | Additional Options |
---|---|---|---|---|
list | ls | List available agents | -j, --json , -r, --remote-url <url> , -p, --port <port> | |
get | g | Get agent details | -n, --name <name> | -j, --json , -o, --output [file] , -r, --remote-url , -p, --port |
start | s | Start an agent with a character profile | One of: -n, --name , --path , --remote-character | -r, --remote-url <url> , -p, --port <port> |
stop | st | Stop an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
remove | rm | Remove an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
set | Update agent configuration | -n, --name <name> AND one of: -c, --config OR -f, --file | -r, --remote-url <url> , -p, --port <port> | |
clear-memories | clear | Clear all memories for an agent | -n, --name <name> | -r, --remote-url <url> , -p, --port <port> |
Options Reference
Common Options (All Subcommands)
-r, --remote-url <url>
: URL of the remote agent runtime-p, --port <port>
: Port to listen on
Output Options (for list
and get
)
-j, --json
: Output as JSON format instead of the default table format.-o, --output [file]
: For theget
command, saves the agent’s configuration to a JSON file. If no filename is provided, defaults to{name}.json
.
Get Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Start Specific Options
-n, --name <name>
: Name of an existing agent to start--path <path>
: Path to local character JSON file--remote-character <url>
: URL to remote character JSON file
Stop/Remove Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Set Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)-c, --config <json>
: Agent configuration as JSON string-f, --file <path>
: Path to agent configuration JSON file
Clear Memories Specific Options
-n, --name <name>
: Agent id, name, or index number from list (required)
Listing Agents
Getting Agent Details
Starting Agents
Required Configuration:
You must provide one of these options: --name
, --path
, or --remote-character
Stopping Agents
Removing Agents
Updating Agent Configuration
Clearing Agent Memories
Output Formatting
The list
and get
commands support different output formats, making it easy to use the CLI in scripts or for human readability.
table
(Default)
The default format is a human-readable table, best for viewing in the terminal.
json
Outputs raw JSON data. Useful for piping into other tools like jq
. Use the -j
or --json
flag.
Character File Structure
When using --path
or --remote-character
, the character file should follow this structure:
Agent Identification
Agents can be identified using:
- Agent Name: Human-readable name (e.g., “eliza”, “pmairca”)
- Agent ID: System-generated ID (e.g., “agent_123456”)
- List Index: Position in
elizaos agent list
output (e.g., “0”, “1”, “2”)
Interactive Mode
All agent commands support interactive mode when run without required parameters:
Remote Runtime Configuration
By default, agent commands connect to http://localhost:3000
. Override with:
Environment Variable
Command Line Option
Custom Port
Agent Lifecycle Workflow
1. Create Agent Character
2. Start Agent Runtime
3. Manage Agents
Troubleshooting
Connection Issues
Agent Not Found
Configuration Errors
- Validate JSON syntax in character files and config strings
- Ensure all required fields are present in character definitions
- Check file paths are correct and accessible