An open-source AI agent that brings the power of Super Agent directly into your terminal
@involvex/super-agent-cli

A conversational AI CLI tool powered by Super Agent with intelligent text editor capabilities and tool usage.
bun add -g @involvex/super-agent-clibun add -g @involvex/super-agent-cli
Or with npm (fallback):
npm install -g @involvex/super-agent-cli
Super Agent CLI uses two types of configuration files to manage settings:
~/.super-agent/settings.json)This file stores global settings that apply across all projects. These settings rarely change and include:
gemini-3.0-flash)undefinedExample:undefined
{
"active_provider": "gemini",
"providers": {
"gemini": {
"id": "gemini",
"provider": "gemini",
"model": "MODEL_NAME",
"api_key": "API_KEY",
"base_url": "BASE_URL (optional)",
"default_model": "MODEL_NAME"
}
}
}
.super-agent/settings.json)This file stores project-specific settings in your current working directory. It includes:
undefinedExample:undefined
{
"active_provider": "gemini",
"providers": {
"gemini": {
"id": "gemini",
"provider": "gemini",
"model": "MODEL_NAME",
"api_key": "API_KEY",
"base_url": "BASE_URL (optional)",
"default_model": "MODEL_NAME"
}
},
"mcpServers": {
"linear": {
"name": "linear",
"transport": "stdio",
"command": "npx",
"args": ["@linear/mcp-server"]
}
}
}
gemini-3-pro-preview)This means you can have different models for different projects while maintaining consistent global settings like your API key.
undefinedImportant: Super Agent CLI uses OpenAI-compatible APIs. You can use any provider that implements the OpenAI chat completions standard.
undefinedPopular Providers:
https://generativelanguage.googleapis.com/v1beta/openai (default)https://api.openai.com/v1https://openrouter.ai/api/v1https://api.groq.com/openai/v1undefinedExample with OpenRouter:
{
"apiKey": "your_openrouter_key",
"baseURL": "https://openrouter.ai/api/v1",
"defaultModel": "anthropic/claude-3.5-sonnet",
"models": [
"anthropic/claude-3.5-sonnet",
"openai/gpt-4o",
"meta-llama/llama-3.1-70b-instruct"
]
}
Start the conversational AI assistant:
super-agent
# or
super-agent about
# or
super-agent plugins list
Or specify a working directory:
super-agent -d /path/to/project
Super Agent CLI provides several interactive features to enhance your workflow:
shift+! to toggle shell mode for direct command executionshift+tab to cycle through modes (plan, code, debug)ctrl+p to open a quick command palettectrl+y to toggle auto-edit mode@filename in your prompts@folder in your promptsProcess a single prompt and exit (useful for scripting and automation):
super-agent --prompt "show me the package.json file"
super-agent -p "create a new file called example.js with a hello world function"
super-agent --prompt "run bun test and show me the results" --directory /path/to/project
super-agent --prompt "complex task" --max-tool-rounds 50 # Limit tool usage for faster execution
This mode is particularly useful for:
By default, Super Agent CLI allows up to 400 tool execution rounds to handle complex multi-step tasks. You can control this behavior:
# Limit tool rounds for faster execution on simple tasks
super-agent --max-tool-rounds 10 --prompt "show me the current directory"
# Increase limit for very complex tasks (use with caution)
super-agent --max-tool-rounds 1000 --prompt "comprehensive code refactoring"
# Works with all modes
super-agent --max-tool-rounds 20 # Interactive mode
super-agent git commit-and-push --max-tool-rounds 30 # Git commands
undefinedUse Cases:
You can specify which AI model to use with the --model parameter:
# Use Super Agent models
super-agent --model gemini-3-pro-preview
super-agent --model gemini-2.5-pro
super-agent --model gemini-2.5-flash
Add to ~/.super-agent/settings.json:
{
"active_provider": "gemini",
"providers": {
"gemini": {
"id": "gemini",
"provider": "gemini",
"model": "gemini-3-pro-preview",
"api_key": "YOUR_API_KEY",
"default_model": "gemini-3-pro-preview"
}
}
}
undefinedModel Priority: --model flag > user default model > system default (gemini-3-pro-preview)
super-agent [options]
Options:
-V, --version output the version number
-d, --directory <dir> set working directory
-k, --api-key <key> Super Agent API key (or set SUPER_AGENT_API_KEY env var)
-u, --base-url <url> Super Agent API base URL (or set SUPER_AGENT_BASE_URL env var)
-m, --model <model> AI model to use (e.g., super-agent-code-fast-1, super-agent-4-latest) (or set SUPER_AGENT_MODEL env var)
-p, --prompt <prompt> process a single prompt and exit (headless mode)
--max-tool-rounds <rounds> maximum number of tool execution rounds (default: 400)
-h, --help display help for command
Commands:
about Show information about the Super Agent CLI
plugins list/install/uninstall <name/path> Manage plugins for Super Agent CLI
git Git operations with AI assistance
mcp Manage MCP servers
web Start web interface
serve Start both TUI and web interfaces
undefinedNote: In addition to these command-line commands, all slash commands (e.g., /init, /config, /models, /chat, /plugin, /help) are available in interactive mode. See the Command Reference section for a complete list of available slash commands.
Super Agent CLI provides a web interface for a more visual and accessible experience.
# Start only the web interface
super-agent web
# Start both the TUI (terminal UI) and web interfaces
super-agent serve
The web interface offers:
The web interface provides all the functionality of the TUI with the added convenience of a graphical interface, making it easier to visualize file operations, tool usage, and complex workflows.
Super Agent CLI provides a comprehensive set of commands to manage your AI assistant sessions.
/init # Create AGENTS.md in project root with template instructions
/config # Configure API keys, models, base URLs, and other settings
/models # List all available models
/models <model> # Switch to a specific model
/models <model> <prompt> # Switch to a model and immediately run a prompt
/chat # Show current chat information
/chat save <chat_name> # Save the current chat
/chat load <chat_name> # Load a saved chat
/chat list # List all saved chats
/chat delete <chat_name> # Delete a saved chat
/chat clear # Clear the current chat history
/plugin install <plugin_name> # Install a plugin from GitHub, local path, or file
/plugin list # List all installed plugins
/plugin delete <plugin_name> # Delete an installed plugin
/mcp add <name> [options] # Add a new MCP server
/mcp list # List all configured MCP servers
/mcp test <name> # Test a MCP server connection
/mcp remove <name> # Remove a MCP server
/help # Show help information and available commands
/clear # Clear the current chat history
/exit # Exit the CLI
# Initialize project with agent instructions
/init
# Switch to Gemini Flash and run a prompt
/models gemini-2.5-flash "explain this codebase"
# Save current chat session
/chat save feature-development
# Load a previous chat session
/chat load feature-development
# Install a plugin from GitHub
/plugin install involvex/super-agent-cli-plugins
# Configure API settings
/config
Extend Super Agent with custom tools and capabilities through plugins.
undefinedFrom GitHub Repository:undefined
# Full URL
super-agent plugins install https://github.com/involvex/super-agent-cli-plugins
# Short format (owner/repo)
super-agent plugins install involvex/super-agent-cli-plugins
undefinedFrom Local Directory:undefined
super-agent plugins install ./my-plugin
super-agent plugins install /path/to/plugin-directory
undefinedFrom File:undefined
super-agent plugins install ./plugin.js
super-agent plugins install /path/to/plugin/dist/index.js
# List installed plugins
super-agent plugins list
# Uninstall a plugin
super-agent plugins uninstall plugin-name
See the official plugin repository for:
You can provide custom instructions to tailor Super Agent’s behavior to your project or globally. Super Agent CLI reads agent and skill configurations from multiple locations.
Super Agent CLI reads agent instructions from these locations, in order of priority:
AGENTS.md in project root - highest priority.super-agent/AGENTS.md in project directory.super-agent/agents/*.md - individual agent files~/.super-agent/AGENTS.md in home directory~/.super-agent/agents/*.md - global agent filesCreate project-specific agent instructions:
mkdir -p .super-agent
Create .super-agent/AGENTS.md with your project-specific instructions:
# Custom Agent Instructions for This Project
Always use TypeScript for any new code files.
When creating React components, use functional components with hooks.
Prefer const assertions and explicit typing over inference where it improves clarity.
Always add JSDoc comments for public functions and interfaces.
Follow the existing code style and patterns in this project.
Skill configurations follow the same priority order:
SKILLS.md in project root - highest priority.super-agent/SKILLS.md in project directory.super-agent/skills/*.md - individual skill files~/.super-agent/SKILLS.md in home directory~/.super-agent/skills/*.md - global skill filesFor instructions that apply across all projects, create ~/.super-agent/AGENTS.md in your home directory:
mkdir -p ~/.super-agent
Create ~/.super-agent/AGENTS.md with your global instructions:
# Global Agent Instructions for Super Agent CLI
Always prioritize code readability and maintainability.
Use descriptive variable names and add comments for complex logic.
Follow best practices for the programming language being used.
When suggesting code changes, consider performance implications.
Super Agent will load custom instructions in the following priority order:
*.md) are merged into a single instruction setIf multiple files exist, they are combined with project instructions taking precedence. If neither exists, Super Agent operates with its default behavior.
The custom instructions are added to Super Agent’s system prompt and influence its responses across all interactions in the respective context.
Super Agent CLI supports MCP (Model Context Protocol) servers, allowing you to extend the AI assistant with additional tools and capabilities.
# Add an stdio-based MCP server
super-agent mcp add my-server --transport stdio --command "bun" --args server.js
# Add an HTTP-based MCP server
super-agent mcp add my-server --transport http --url "http://localhost:3000"
# Add with environment variables
super-agent mcp add my-server --transport stdio --command "python" --args "-m" "my_mcp_server" --env "API_KEY=your_key"
super-agent mcp add-json my-server '{"command": "bun", "args": ["server.js"], "env": {"API_KEY": "your_key"}}'
To add Linear MCP tools for project management:
# Add Linear MCP server
super-agent mcp add linear --transport sse --url "https://mcp.linear.app/sse"
This enables Linear tools like:
# List all configured servers
super-agent mcp list
# Test server connection
super-agent mcp test server-name
# Remove a server
super-agent mcp remove server-name
# Install dependencies
bun install
# Development mode
bun run dev
# Build project
bun run build
# Run linter
bun run lint
# Type check
bun run typecheck
MIT