Quick reference
Agent files
Agent files use the.agentuse extension. They combine YAML frontmatter with Markdown instructions:
model, tools, schedule, mcpServers, subagents, store, learning, sandbox, approval, channels, timeout, and maxSteps.
See Agent Syntax for the full schema.
Approval channels are configured separately from approval policy:
Environment files
AgentUse loads environment variables from the project root. Project roots are detected by walking upward from the starting directory until.agentuse/, .git/, or package.json is found. If none are found, the starting directory is the project root.
For agentuse run, .env.local takes priority when present, otherwise .env is used. You can also pass a specific file:
agentuse serve, -C selects the directory whose agents are served, while the detected project root owns .env.local, .env, .agentuse/store, and session state. Each served project loads its own .env.local or .env in that project’s worker process. Environment variables do not mix across served projects.
Use environment files for provider API keys, MCP server credentials, and runtime controls such as MAX_STEPS, LOG_LEVEL, and AGENTUSE_TELEMETRY_DISABLED.
See Environment Variables for supported variables and examples.
Global serve config
Put long-livedagentuse serve defaults in ~/.agentuse/config.json:
AGENTUSE_CONFIG_DIR=/path/to/profile to isolate the complete configuration profile. AgentUse reads config.json and .env from that directory and uses its projects/, plugins/, and skills/ subdirectories for user-global resources. Project paths inside config.json may start with ~ or ~/.
AGENTUSE_CONFIG and AGENTUSE_ENV remain as deprecated file-level overrides for compatibility and take precedence over AGENTUSE_CONFIG_DIR when set. They are scheduled for removal no earlier than December 1, 2026; new integrations should use only AGENTUSE_CONFIG_DIR.
AgentUse runs one serve daemon at a time. Put every project that should accept /run, approval, and notification traffic into serve.projects, or pass repeated -C flags when starting the daemon.
CLI flags override config values:
AGENTUSE_API_KEY remains env-only and is not read from config.
See Webhooks and CLI Commands for serve usage.
Directory identity with ABOUT.md
Place an optional ABOUT.md in a served project root or a directory containing
agents. The dashboard uses the file to label and describe that directory. It
does not alter agent prompts, API routes, or scheduling.
Plain Markdown becomes the longer body shown on the directory detail surface:
name, description, and owner; scalar
string or numeric values are normalized for display. Unknown keys and other
value types are ignored. The body remains the longer description. AgentUse
rejects symlinked and oversized ABOUT.md files so directory identity cannot
disclose an unrelated local file or inflate API responses.
serve.brand.name labels the whole deployment; ABOUT.md labels one served
directory within it. Use serve.terms when the deployment calls projects or
folders by different nouns.
Global env defaults
Alongsideserve, ~/.agentuse/config.json accepts an env block of environment variable defaults, mirroring the env key in Claude Code’s settings.json. Use it for non-secret defaults you want applied to every run without maintaining a separate ~/.agentuse/.env file:
--mock-model <model> overrides AGENTUSE_MOCK_MODEL from any source, and --mock is satisfied by a mock model coming from the flag, the shell, ~/.agentuse/.env, or the config env block.
Keep secrets (like AGENTUSE_API_KEY and provider API keys) in an environment file rather than config.json, which is plain non-secret configuration.
Model defaults and aliases
Amodels block in ~/.agentuse/config.json sets the model used by agent files that omit model, and names models that agent files reference as @name:
defaultapplies to any agent file with nomodel:field.AGENTUSE_MODELoverrides it, and an explicitmodel:in the file overrides both.aliaseskeys are alphanumeric with hyphens or underscores, referenced with the@sigil (definefast, write@fast). The@is required in the reference because a bare name is already a valid OpenAI model id.- A string value may be a concrete id, a version alias, another
@name, or any of those with an:envauth suffix. - An object value defines ordered fallback
candidates. AgentUse tries the next candidate on a transient first-request failure (rate limit, timeout, provider 5xx, or transport failure) or when the candidate cannot be authenticated at all (no login, an OAuth token that will not refresh, a 401/403), and only if the model has not produced output or invoked a tool in the current execution segment. The resolved order is persisted so the same policy remains available after an approval resume. - Optional
cooldownis a duration string such as"30s"or"5m". A concrete model that just failed this way is skipped by new runs in the same process until the cooldown expires. Cooldowns are in memory: restartingagentuse serveor starting a separate CLI process resets them.
config.json in a dedicated directory and set AGENTUSE_CONFIG_DIR to that directory.
Run agentuse models to see every alias and what it currently resolves to.
Plugins
Loose plugins are TypeScript or JavaScript modules loaded from these directories:.agentuse/plugins/*.{ts,js}$AGENTUSE_CONFIG_DIR/plugins/*.{ts,js}(defaults to~/.agentuse/plugins/*.{ts,js})
$AGENTUSE_DATA_DIR/plugins, which defaults to ~/.local/share/agentuse/plugins. Plugins installed with agentuse plugins install -l live under .agentuse/packages and are recorded in .agentuse/plugins.json.
See Plugins for the plugin API.
Skills
Skills are reusable instruction packs stored asSKILL.md files. AgentUse discovers skills in this order:
.agentuse/skills/$AGENTUSE_CONFIG_DIR/skills/(defaults to~/.agentuse/skills/).claude/skills/~/.claude/skills/~/.agents/skills/
.agentuse/skills/ for project-specific skills and $AGENTUSE_CONFIG_DIR/skills/ for personal skills shared across projects. The latter defaults to ~/.agentuse/skills/. The .claude/skills/ locations provide compatibility with existing Claude skills, while ~/.agents/skills/ supports the shared agent-skills convention. Symlinked skill directories and SKILL.md files are supported; dangling links are skipped and circular directory links are ignored safely.
See Skills for authoring and discovery details.
Generated files and data locations
These files are generated by features rather than hand-written as primary configuration:
Configuration and durable application data have separate roots.
AGENTUSE_CONFIG_DIR moves user-controlled configuration; AGENTUSE_DATA_DIR moves AgentUse-owned data. XDG_DATA_HOME remains a compatible base-directory fallback. Isolated test or development servers should set the two AgentUse-specific variables.
State that a run generates rather than a person writes lives outside the project, under a per-project directory keyed by a digest of the git root:
{agent-file}.learnings.md, where every run rewrote them into your working tree. agentuse learnings <agent-file> --path prints the new location and agentuse learnings migrate --all moves existing files into it.
See Learning, Store, Sandbox, and Session Storage for details.