CLI Tool
Interactive command-line interface for creating, managing, and testing AgentSea AI agents.
Built for Developer Productivity
ā Interactive setup wizard
ā Real-time chat interface
ā Agent management (CRUD operations)
ā Model management (pull, list, info)
ā Configuration persistence
ā Voice support
Installation
Install the AgentSea CLI globally with npm:
npm install -g @lov3kaizen/agentsea-cli
pnpm add -g @lov3kaizen/agentsea-cli
yarn global add @lov3kaizen/agentsea-cli
sea --versionQuick Start
Initialize AgentSea with the interactive setup wizard:
sea init
# The wizard will guide you through:
# 1. Choose your provider (Anthropic, OpenAI, Ollama, etc.)
# 2. Enter API key (if cloud provider)
# 3. Select default model
# 4. Configure voice providers (optional)
# 5. Save configurationConfiguration
Configuration is stored in:
- macOS:
~/Library/Preferences/agentsea-cli - Linux:
~/.config/agentsea-cli - Windows:
%APPDATA%/agentsea-cli
Commands
sea init
Interactive initialization wizard to set up AgentSea configuration.
sea init
Choose your provider: (Use arrow keys)
Anthropic (Claude)
OpenAI (GPT)
Google (Gemini)
Ollama (Local)
LM Studio (Local)
LocalAI (Local)
Enter your API key: ****
Choose default model: claude-sonnet-4-20250514
Configure voice? Yes
STT provider: openai-whisper
TTS provider: openai-tts
Configuration saved!sea chat
Start an interactive chat session with your agent.
sea chat
sea chat --agent my-assistant
sea chat --voice
sea chat --model llama3.2
AgentSea Chat (Type 'exit' to quit)
Hello! What can you help me with?
I'm a helpful AI assistant. I can help with:
- Answer questions
- Write code
- Analyze data
- Creative writing
- And much more!
Calculate 42 * 58
42 Ć 58 = 2,436sea agent
Manage your agents - create, list, get, delete, run.
Create an Agent
sea agent create
sea agent create my-assistant --provider anthropic --model claude-sonnet-4-20250514 --system-prompt "You are a helpful coding assistant" --temperature 0.7 --max-tokens 2048
sea agent create voice-assistant --provider ollama --model llama3.2 --voice-stt openai-whisper --voice-tts openai-ttsList Agents
sea agent list
Available Agents:
================
my-assistant (default)
Provider: anthropic
Model: claude-sonnet-4-20250514
voice-assistant
Provider: ollama
Model: llama3.2
Voice: OpenAI Whisper (STT) + OpenAI TTS (TTS)
code-reviewer
Provider: openai
Model: gpt-4-turbo-previewRun an Agent
sea agent run my-assistant "What is 42 * 58?"
sea agent run voice-assistant --voice-input ./question.mp3 --voice-output ./response.mp3
sea agent run my-assistant "Explain async/await" {'>'} explanation.txtOther Agent Commands
sea agent get my-assistant
sea agent delete my-assistant
sea agent default my-assistantsea model
Manage local models (works with Ollama).
sea model pull llama3.2
Pulling llama3.2...
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 100% (4.7 GB)
Model llama3.2 pulled successfully!
sea model list
Available Models:
================
llama3.2 (4.7 GB)
mistral (4.1 GB)
codellama (3.8 GB)
qwen2.5 (4.7 GB)
sea model info llama3.2
Model: llama3.2
Size: 4.7 GB
Parameters: 8B
Quantization: Q4_0
Family: LLaMA
License: Llama 3 Community License
sea model remove codellamasea provider
Manage provider configurations.
sea provider add anthropic --api-key sk-ant-...
sea provider list
Configured Providers:
====================
anthropic (Claude)
API Key: sk-ant-****
Default Model: claude-sonnet-4-20250514
ollama (Local)
Base URL: http://localhost:11434
Models: 4 installed
sea provider test anthropic
sea provider remove openaiCommon Workflows
1. Quick Local Setup
curl -fsSL https://ollama.com/install.sh | sh
sea init
# Select: Ollama (Local)
sea model pull llama3.2
sea chat
No API keys needed!
Complete privacy!
Zero costs!2. Create Voice-Enabled Assistant
sea agent create voice-bot --provider anthropic --model claude-sonnet-4-20250514 --voice-stt openai-whisper --voice-tts openai-tts --system-prompt "You are a voice assistant. Keep responses concise."
sea chat --agent voice-bot --voice
sea agent run voice-bot --voice-input question.mp3 --voice-output answer.mp33. Multi-Agent Setup
sea agent create researcher --model claude-sonnet-4-20250514 --system-prompt "Research and gather information"
sea agent create writer --model gpt-4-turbo-preview --system-prompt "Write clear, engaging content"
sea agent create coder --provider ollama --model codellama --system-prompt "Write clean, efficient code"
sea agent run researcher "Latest AI trends"
sea agent run writer "Blog post about AI agents"
sea agent run coder "Python function for data validation"Configuration File
AgentSea stores configuration in JSON format. You can edit it directly if needed:
{
"providers": {
"anthropic": {
"apiKey": "sk-ant-****",
"defaultModel": "claude-sonnet-4-20250514"
},
"ollama": {
"baseUrl": "http://localhost:11434"
}
},
"agents": {
"my-assistant": {
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"systemPrompt": "You are a helpful assistant.",
"temperature": 0.7,
"maxTokens": 2048
},
"local-agent": {
"provider": "ollama",
"model": "llama3.2",
"temperature": 0.8
}
},
"defaultAgent": "my-assistant",
"voice": {
"stt": {
"provider": "openai-whisper",
"apiKey": "sk-****"
},
"tts": {
"provider": "openai-tts",
"apiKey": "sk-****",
"voice": "nova"
}
}
}Tips & Best Practices
Use Specialized Agents
Create different agents for different tasks: code review, writing, data analysis, etc. Each can have optimized prompts and models.
Mix Cloud & Local
Use local models for development and simple tasks, cloud models for complex production work. Best of both worlds.
Keep Keys Secure
The CLI stores API keys securely in your system config. Never commit them to version control.
Voice Mode Tips
Keep voice assistant prompts concise. Add "Respond in 2 sentences max" for better voice UX. Users don't want to listen to long responses.
Complete Examples
Example 1: Local Development Setup
curl -fsSL https://ollama.com/install.sh | sh
npm install -g @lov3kaizen/agentsea-cli
ollama pull llama3.2
sea init # Choose Ollama
sea chat
# Start coding assistance with local AI
# No API costs, complete privacy!Example 2: Production Setup
sea provider add anthropic --api-key sk-ant-***sea provider add openai --api-key sk-***sea agent create prod-assistant \ --provider anthropic \ --model claude-sonnet-4-20250514 \ --temperature 0.7 \ --max-tokens 2048sea agent default prod-assistantsea agent run prod-assistant "Analyze this error log..." < error.logExample 3: Voice Assistant
sea init
# Configure voice providers when prompted
sea agent create jarvis --provider anthropic --voice-stt openai-whisper --voice-tts openai-tts
sea chat --agent jarvis --voice
sea agent run jarvis --voice-input ~/Desktop/question.mp3 --voice-output ~/Desktop/answer.mp3Next Steps
- Voice Features - Learn more about voice capabilities
- Local Models - Deep dive into local execution
- Agent Concepts - Understand agent architecture
- View Examples - Complete CLI examples
Pro Tip
Use sea chat --voice for a hands-free coding experience. Ask questions while looking at your code, get answers spoken back to you. Perfect for pair programming with AI!