Overview
The Cosine CLI (command cos) is a powerful terminal interface that brings Cosine’s AI capabilities directly to your local development environment. With the CLI, you can have intelligent conversations about your code, automate tasks, and leverage external tools through the Model Context Protocol (MCP).
What You Can Do
Section titled “What You Can Do”- Interactive AI Sessions: Start a terminal user interface (TUI) session where you can chat with Cosine about your codebase
- One-shot Tasks: Run single prompts without entering interactive mode
- Repository Analysis: Automatically analyze your repo structure and get AI-generated context files
- Browser Automation: Control Chrome for web-based tasks via CDP
- MCP Integration: Connect external tools and APIs through Model Context Protocol servers
- Skills Management: Install and manage reusable skill packages
- Reasoning Control: Choose faster or deeper model behavior depending on the task
Choose How Cosine Works
Section titled “Choose How Cosine Works”The CLI supports four operating modes so you can match Cosine’s behavior to the task in front of you:
- Manual: Stay in control and approve actions step by step
- Auto: Let Cosine execute work directly for faster iteration
- Plan: Have Cosine investigate first and propose a plan before execution
- Swarm: Split complex work across multiple agents in parallel
See CLI Modes for the full behavior of each mode and when to use them.
Tune How Deeply Cosine Thinks
Section titled “Tune How Deeply Cosine Thinks”You can also change the model’s reasoning level for a session. Lower levels respond faster, while higher levels spend more time planning and checking edge cases.
See Reasoning for when to use none, low, medium, high, xhigh, or adaptive.
Start Here
Section titled “Start Here”- Quickstart — Install the CLI, sign in, and run your first task
- Common Terms — Learn the key CLI terms used across the docs
- Commands — Learn the main commands and look up global flags
- Reasoning — Learn how reasoning changes speed, depth, and model behavior
- Install & Authenticate — Full install methods, dependencies, and sign-in options
Most Common Commands
Section titled “Most Common Commands”| Command | Use it when |
|---|---|
cos start | You want to open the TUI or run a one-shot task |
cos login | You need to sign in to your Cosine account |
cos init | You want to set up repo-local CLI config files |
cos mcp | You want to add or manage MCP servers |
cos skills | You want to install or manage reusable skills |
For command syntax and examples, see Commands.
Typical Flows
Section titled “Typical Flows”Start an interactive session
Section titled “Start an interactive session”cos startRun a one-shot task
Section titled “Run a one-shot task”cos start --prompt "Explain the main function in main.go"Configuration
Section titled “Configuration”The CLI reads configuration from multiple sources (in order of precedence):
- Command-line flags (highest priority)
- Repository config (
.cosine.tomlorcosine.toml) - User config (
~/.cosine.toml) - Environment variables
- Defaults (lowest priority)
Profile-specific configs
Section titled “Profile-specific configs”You can create profile-specific configs:
cosine.<profile>.tomlin repo (project-specific)~/.cosine.<profile>.tomlin home (user-specific)
Use with: cos --profile <profile> start
Next Steps
Section titled “Next Steps”- Quickstart - Get from install to first task quickly
- Common Terms - Look up the core CLI vocabulary
- Commands - Browse the main commands
- Reasoning - Choose the right depth for each task
- Configuration - Learn about all config options
- MCP Configuration - Connect external tools via MCP