Skip to content

First Agent Setup

This guide walks through connecting your first AI agent to AgentMux. AgentMux supports multiple agent providers — Claude Code, Codex CLI, and Gemini CLI.

You need at least one AI agent CLI installed and an API key configured:

ProviderCLI InstallAPI Key Env Var
Claude Codenpm install -g @anthropic-ai/claude-codeCLAUDE_API_KEY
Codex CLInpm install -g @openai/codexOPENAI_API_KEY
Gemini CLInpm install -g @google/gemini-cliGEMINI_API_KEY

Set your API key in your shell profile (~/.bashrc, ~/.zshrc, etc.) or configure it in AgentMux’s environment settings.

  1. Open The Forge — click the hammer icon in the top bar or press Cmd+Shift+F / Alt+Shift+F
  2. Click + New Agent
  3. Fill in the agent configuration:
FieldDescription
NameA human-readable name (e.g., backend-claude)
Agent Typehost (runs on your machine) or container (Docker)
ProviderClaude Code, Codex CLI, or Gemini CLI
Working DirectoryThe project directory the agent works in

Each provider has a default launch command:

Claude Code: claude --output-format stream-json
Codex CLI: codex --full-auto
Gemini CLI: gemini --yolo

You can customize these in the agent’s settings.

The Forge provides four content tabs per agent:

  • Soul — The agent’s system prompt and personality. Defines how the agent behaves and what it prioritizes.
  • Instructions — Project-specific instructions (equivalent to CLAUDE.md or similar). Loaded into the agent’s context on launch.
  • MCP — Model Context Protocol server configuration. Add tools the agent can use (filesystem access, GitHub, databases, etc.).
  • Env — Environment variables passed to the agent process. Use this for API keys, feature flags, and project-specific config.

From the Forge agent list, click on your agent’s card and then click Launch. A new agent pane opens in your workspace.

The agent pane shows:

  • Streaming output — Text as the agent generates it
  • Tool calls — Each tool invocation with name and arguments
  • File diffs — Side-by-side diffs when the agent modifies files
  • Status — Active, idle, or completed

Run directly on your machine. The agent CLI process spawns as a child process with access to your local filesystem and tools.

Run inside Docker containers. AgentMux connects to the container and manages the agent lifecycle. Useful for isolated environments or when agents need specific toolchains.

If you use Claw for container agent management, you can import existing agent configurations directly into The Forge. Click Import from Claw in the empty state or from the Forge header menu.

Each agent can have custom skills — reusable prompt templates, commands, workflows, or MCP tool configurations. Manage skills from the agent’s detail view in The Forge under the Skills tab.

Skill types:

TypeDescription
promptA reusable prompt template
commandA shell command or script
workflowA multi-step sequence
mcp-toolAn MCP tool configuration