Getting Started with the CLI
Install the Agentuity CLI and authenticate to start building agents.
The v1 CLI is designed to be your primary interface for building and managing Agentuity projects. You can create agents, inspect sessions, manage storage, debug deployments, and deploy — all without leaving your terminal. The Console stays fully synced for when you prefer a visual interface.
Installation
Install the CLI using the universal installer:
curl -sSL https://v1.agentuity.sh | shAlternative: Install via Bun
If you prefer package managers: bun add -g @agentuity/cli
Verify the installation:
agentuity --versionRequirements
Bun 1.3.0 or higher is required to run the CLI.
Authentication
Login to Your Account
Authenticate using a browser-based login flow:
agentuity auth login
# or simply
agentuity loginThis command:
- Generates a one-time password and opens your browser
- Prompts you to authenticate in the web app
- Saves your API credentials locally
Check your authentication status:
agentuity auth whoamiCreate a New Account
Sign up for a new Agentuity account directly from the CLI:
agentuity auth signupThis opens your browser to complete account creation, then automatically saves your credentials locally.
Logout
Clear your local credentials:
agentuity auth logout
# or simply
agentuity logoutCreating Projects
Create a New Project
The quickest way to get started is the interactive project creation:
agentuity project create
# or simply
agentuity createCreate a project with a specific name:
agentuity project create --name my-agentCreate a project in a specific directory:
agentuity project create --name my-agent --dir ~/projects/agentsAvailable Templates
| Template | Description |
|---|---|
default | React UI with example agents using @agentuity/schema (recommended for getting started) |
openai | Uses OpenAI SDK directly for chat completions |
groq | Uses Groq SDK for fast inference with open-source models |
xai | Uses AI SDK with xAI provider for Grok models |
vercel-openai | Uses AI SDK with OpenAI provider |
agentuity project create --template openaiProject Creation Options
--name <name>: Project name--dir <path>: Directory to create the project in--template <name>: Template to use (default: "default")--no-install: Skip dependency installation--no-build: Skip initial build--no-register: Don't register the project with Agentuity Cloud
Example:
agentuity project create \
--name customer-service-bot \
--dir ~/projects \
--no-buildManaging Projects
List Projects
View all registered projects:
agentuity project listFor machine-readable output (useful for scripts and AI coding agents):
agentuity --json project listShow Project Details
View details for a specific project:
agentuity project show <project-id>Delete a Project
Delete projects interactively:
agentuity project deleteDelete a specific project:
agentuity project delete <project-id>Skip confirmation prompt:
agentuity project delete <project-id> --confirmPermanent Deletion
Project deletion is permanent and cannot be undone. Deployed agents and associated resources will be removed.
Command Shortcuts
Several common commands have shortcuts that let you skip the subcommand prefix:
| Full Command | Shortcut | Also Works |
|---|---|---|
agentuity auth login | agentuity login | |
agentuity auth logout | agentuity logout | |
agentuity auth signup | agentuity signup | |
agentuity project create | agentuity create | new, init |
agentuity cloud deploy | agentuity deploy | |
agentuity cloud ssh | agentuity ssh |
All other commands require their full prefix (e.g., agentuity cloud session list, agentuity auth ssh add).
Global Options
The CLI supports several global flags that work with any command:
| Flag | Description | Example |
|---|---|---|
--json | Output in JSON format | agentuity --json project list |
--log-level <level> | Set log verbosity (debug, trace, info, warn, error) | agentuity --log-level=debug auth login |
--quiet | Suppress non-essential output | agentuity --quiet project create |
--no-progress | Disable progress indicators | agentuity --no-progress build |
--color <mode> | Control color output (auto, always, never) | agentuity --color=never project list |
--explain | Show what the command would do without executing | agentuity --explain project delete my-proj |
--dry-run | Simulate command execution | agentuity --dry-run project delete my-proj |
JSON Output
All commands support --json for machine-readable output, useful for shell scripts and AI coding agents:
# Get JSON output for scripting
agentuity --json auth whoami
# Parse with jq (a command-line JSON processor)
agentuity --json project list | jq '.[].name'What is jq?
jq is a lightweight command-line JSON processor. Install it via brew install jq (macOS), apt install jq (Linux), or download from the official site.
Log Levels
Control CLI verbosity:
# Detailed debugging output
agentuity --log-level=debug project create
# Only show errors
agentuity --log-level=error buildConfiguration Profiles
The CLI supports multiple configuration profiles for different environments (development, staging, production).
Switch Profiles
Switch to a different profile:
agentuity profile use productionList Profiles
View available profiles:
agentuity profile listDefault Configuration
Configuration is stored in ~/.config/agentuity/production.yaml by default. You can override this with --config=/path/to/config.yaml.
SSH Key Management
Add SSH keys to your account for secure container access during development and debugging.
List SSH Keys
View all SSH keys on your account:
agentuity auth ssh listAdd an SSH Key
Add a new SSH key interactively (automatically discovers keys in ~/.ssh/):
agentuity auth ssh addAdd a specific key file:
agentuity auth ssh add --file ~/.ssh/id_ed25519.pubPipe a key from stdin:
cat ~/.ssh/id_rsa.pub | agentuity auth ssh addRemove an SSH Key
Remove keys interactively:
agentuity auth ssh deleteRemove a specific key by fingerprint:
agentuity auth ssh delete <fingerprint>Why SSH Keys?
SSH keys enable secure access to deployed agent containers for debugging and log inspection. See Debugging Deployments for details.
Next Steps
Now that you have the CLI installed and authenticated:
- Local Development: Run agents locally with hot reload
- Deploying to the Cloud: Deploy agents to Agentuity Cloud
- Managing Cloud Data: Inspect storage, env vars, and secrets
Need Help?
Join our Community for assistance or just to hang with other humans building agents.
Send us an email at hi@agentuity.com if you'd like to get in touch.
Please Follow us on
If you haven't already, please Signup for your free account now and start building your first agent!