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:
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_SHARED → GUILD_USE_LOCAL → GUILDCORE_URL → GUILDCORE_PORT → production default (https://app.guild.ai/api).
Workspace and owner
Workspace resolution order (before falling back to the first workspace from the API):
--workspaceflag on the commandGUILD_WORKSPACE_IDworkspace_idin localguild.json(when you are in an agent directory)default_workspacein~/.guild/config.json