Install
Authenticate
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:~/.guild/config.json.
Set up coding assistant skills
If you use Claude Code or another coding assistant, runguild setup in your project to install development skills:
.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:
| Key | Description |
|---|---|
default_workspace | Default workspace ID used by commands |
debug | Enable verbose debug output |
json | Always output JSON |
quiet | Suppress progress messages |
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
| Variable | Description |
|---|---|
GUILDCORE_URL | Override the Guild API base URL (for example, staging or self-hosted). Guild appends /api if it is missing. |
GUILDCORE_PORT | Use http://localhost:<PORT>/api when GUILDCORE_URL is not set. |
GUILD_USE_LOCAL | Internal shortcut: set to 1 to use http://localhost:5001/api. |
GUILD_USE_SHARED | Internal shortcut: set to 1 to use the shared staging host (https://shared.guildai.dev/api). |
GUILD_USE_SHARED → GUILD_USE_LOCAL → GUILDCORE_URL → GUILDCORE_PORT → production default (https://app.guild.ai/api).
Workspace and owner
| Variable | Description |
|---|---|
GUILD_WORKSPACE_ID | Override the active workspace ID without changing config files. |
GUILD_OWNER_ID | Override the owner account for agent creation commands. |
--workspaceflag on the commandGUILD_WORKSPACE_IDworkspace_idin localguild.json(when you are in an agent directory)default_workspacein~/.guild/config.json
Other
| Variable | Description |
|---|---|
GUILD_STATE_DIR | Override where the CLI stores auth state (used in tests). |
GUILD_AGENT_SAVE | Internal flag set during guild agent save to allow git push through the pre-push hook. |
NO_COLOR | Disable colored CLI output. |