CUGA
CUGA is an open-source generalist agent harness for the enterprise, supporting complex task execution on web and APIs, OpenAPI/MCP integrations, composable architecture, reasoning modes, and policy-aware features.
What is CUGA?
CUGA is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cuga is an open-source generalist agent harness for the enterprise, supporting complex task execution on web and apis, openapi/mcp integrations, composable architecture, reasoning modes, and policy-aw...
CUGA is an open-source generalist agent harness for the enterprise, supporting complex task execution on web and APIs, OpenAPI/MCP integrations, composable architecture, reasoning modes, and policy-aware features.
This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- CUGA is an open-source generalist agent harness for the ente
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx cuga-agentConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use CUGA
CUGA (Configurable Generalist Agent) is an open-source enterprise agent harness that connects AI models to REST APIs via OpenAPI specs, MCP servers, and LangChain tools, enabling complex multi-step task execution across web and API surfaces. It supports composable agent architectures with a built-in policy system for intent guards, tool approvals, and human-in-the-loop gates, making it safe to deploy in regulated or sensitive enterprise environments. Teams use it to orchestrate CRM workflows, run knowledge-base queries over ingested documents, and coordinate multi-agent pipelines where a supervisor delegates to specialized sub-agents.
Prerequisites
- Python 3.12+ and uv package manager installed
- An MCP client such as Claude Desktop or Claude Code
- At minimum one LLM API key: OPENAI_API_KEY (or WATSONX, AZURE_OPENAI, GROQ, OPENROUTER equivalents)
- Git to clone the repository
- Optional: Docker or E2B API key for sandboxed code execution
Clone the repository and set up the environment
Clone the CUGA repository and create a Python 3.12 virtual environment using uv.
git clone https://github.com/cuga-project/cuga-agent.git
cd cuga-agent
uv venv --python=3.12 && source .venv/bin/activate
uv syncConfigure your API key
Create a .env file in the project root and set your LLM provider API key. OPENAI_API_KEY is the default; swap in GROQ_API_KEY, AZURE_OPENAI_API_KEY, or OPENROUTER_API_KEY for alternative providers.
echo "OPENAI_API_KEY=sk-your-key-here" > .envReview and customize agent settings
CUGA uses a TOML configuration file (e.g., settings.openai.toml) pointed to by the AGENT_SETTING_CONFIG env var. Key options include cuga_mode (fast/balanced/accurate), mode (api/web/hybrid), and enable_knowledge for document RAG.
# Point to your settings file
export AGENT_SETTING_CONFIG=settings.openai.tomlStart the agent with a demo configuration
Run the built-in CRM demo to verify everything works. The --read-only flag prevents any write operations during testing.
cuga start demo_crm --read-onlyConfigure MCP servers (optional)
To integrate external MCP servers, add them to mcp_servers.yaml in your project directory. CUGA discovers and loads them at startup alongside OpenAPI specs.
Add CUGA as an MCP server in Claude Desktop
Register CUGA as an MCP server so Claude Desktop can invoke it. Point the command to your virtual environment's Python and the cuga module.
{
"mcpServers": {
"cuga": {
"command": "/path/to/cuga-agent/.venv/bin/python",
"args": ["-m", "cuga"],
"env": {
"OPENAI_API_KEY": "sk-your-key-here",
"AGENT_SETTING_CONFIG": "settings.openai.toml"
}
}
}
}CUGA Examples
Client configuration
Claude Desktop config for CUGA using OpenAI as the backend LLM provider.
{
"mcpServers": {
"cuga": {
"command": "/path/to/cuga-agent/.venv/bin/python",
"args": ["-m", "cuga"],
"env": {
"OPENAI_API_KEY": "sk-your-key-here",
"MODEL_NAME": "gpt-4o",
"AGENT_SETTING_CONFIG": "settings.openai.toml"
}
}
}
}Prompts to try
Example prompts that exercise CUGA's multi-step API, knowledge, and multi-agent capabilities.
- "Get our top 5 customers by revenue, then send the top customer a thank-you email"
- "What does the Q4 report say about revenue growth?"
- "Get the best accounts from the CRM and add them to the current page"
- "Create a presentation summarizing our quarterly results"
- "Run a hybrid task: check the API for open tickets, then find related documentation on the web"Troubleshooting CUGA
Agent fails to start with 'No module named cuga'
Ensure the virtual environment is activated with 'source .venv/bin/activate' before running cuga commands, and that 'uv sync' completed without errors.
API calls fail with authentication errors
Verify that the .env file is in the project root (not a parent directory) and contains the correct key name for your provider (OPENAI_API_KEY, GROQ_API_KEY, etc.). Run 'cat .env' to confirm.
MCP server tools are not discovered
Check that mcp_servers.yaml is present in your working directory and that each server entry has a valid 'command' and 'args' field. Restart CUGA after making changes.
Frequently Asked Questions about CUGA
What is CUGA?
CUGA is a Model Context Protocol (MCP) server that cuga is an open-source generalist agent harness for the enterprise, supporting complex task execution on web and apis, openapi/mcp integrations, composable architecture, reasoning modes, and policy-aware features. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install CUGA?
Follow the installation instructions on the CUGA GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with CUGA?
CUGA works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is CUGA free to use?
Yes, CUGA is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
CUGA Alternatives — Similar Coding Agents Servers
Looking for alternatives to CUGA? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
Browse More Coding Agents MCP Servers
Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up CUGA in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use CUGA?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.