CUGA

v1.0.0Coding Agentsstable

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.

coding-agentcomputer-useenterprisegeneralist-agentguardrails
Share:
738
Stars
0
Downloads
0
Weekly
0/5

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

Deploy enterprise generalist agents that handle complex task execution. Integrate OpenAPI and MCP tools with policy-aware architecture. Build guardrailed agents with composable, extensible design.
cuga-project

Maintainer

LicenseNOASSERTION
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cuga-agent

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 sync
2

Configure 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" > .env
3

Review 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.toml
4

Start 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-only
5

Configure 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.

6

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.

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.

Quick Config Preview

{ "mcpServers": { "cuga-agent": { "command": "npx", "args": ["-y", "cuga-agent"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides