Skip to main content
The Guild CLI lets you build, test, and deploy agents from your terminal. It also gives your coding assistant (Claude Code, Cursor, etc.) a skill for driving agent development.

Install

Verify the installation:

Authenticate

This opens a browser window to complete OAuth authentication. Your token is stored in your system’s secure credential store (Keychain on macOS, Credential Manager on Windows, libsecret on Linux).

Select a workspace

Most commands run in the context of a workspace. Set a default so you don’t have to specify it every time:
This prompts you to choose from your available workspaces and saves your selection to ~/.guild/config.json.

Set up coding assistant skills

If you use Claude Code or another coding assistant, run guild setup in your project to install development skills:
This creates .claude/skills/ files that give your coding assistant knowledge of the Guild SDK, CLI workflow, and agent development patterns. Use --force to update existing skill files, and --claude-md to also generate a CLAUDE.md template.

Verify your setup

doctor checks authentication, server connectivity, your default workspace, and git configuration, and reports any issues with suggested fixes.

Configuration

Global config is stored in ~/.guild/config.json. Use guild config to read and write it:
Local config (guild.json) is written to your agent directory when you run guild agent init and identifies the agent to the CLI.

Environment variables

You can override CLI behavior with environment variables. This is useful in CI/CD pipelines and scripts.

API endpoint

Resolution order for the API URL: GUILD_USE_SHAREDGUILD_USE_LOCALGUILDCORE_URLGUILDCORE_PORT → production default (https://app.guild.ai/api).

Workspace and owner

Workspace resolution order (before falling back to the first workspace from the API):
  1. --workspace flag on the command
  2. GUILD_WORKSPACE_ID
  3. workspace_id in local guild.json (when you are in an agent directory)
  4. default_workspace in ~/.guild/config.json

Other