Configure Argy Code
argy.json and ARGY.md files, configuration keys, run configurations and public environment variables used to set up Argy Code.
Argy Code is configured with a JSON file (argy.json), Markdown instruction files (ARGY.md) and a few environment variables. This page is for developers and platform teams who want a consistent configuration shared across a repository or an organization. To install the tool, see Install Argy Code; for authorization rules, see Permissions and security.
Configuration files
Argy Code reads its configuration from the following locations.
| Location | Scope | Notes |
|---|---|---|
argy.json or argy.jsonc at the project root | Project | Can be versioned with the code; .jsonc allows comments. |
.argy/argy.json | Project | Alternative that keeps the repository root clean. |
| User configuration directory | Global | Personal settings shared by all projects. |
ARGY_CONFIG variable | Explicit file | Path to a configuration file to load. |
ARGY_CONFIG_CONTENT variable | Inline | JSON content passed directly, useful in containers or CI. |
Depending on your deployment, enterprise-managed configuration and organization defaults can also apply; they combine with the files above.
To get autocomplete in your editor, declare the public schema at the top of the file:
{
"$schema": "https://argy.cloud/config.json"
}
This schema does not cover every key Argy Code accepts: it rejects keys it does not know, while the software accepts shell, exec_policy, run, storage, reference, attachment and notifications. An editor that validates strictly will therefore flag these keys wrongly. The authoritative reference for keys and their types is the table on this page, completed by argy debug config.
Minimal example
{
"$schema": "https://argy.cloud/config.json",
"locale": "en",
"default_agent": "builder",
"instructions": ["docs/conventions.md"],
"permission": {
"edit": { "*": "ask", "src/**": "allow" },
},
}
In a permission rule, the last matching rule wins: put general rules ("*") first and specific cases after. Here, every edit asks for confirmation except under src/.
Instruction files
Instruction files give the agent permanent project context: coding conventions, test commands, team rules.
| File | Where | Notes |
|---|---|---|
ARGY.md | Project, configuration folder, global | Main instruction file. |
CLAUDE.md | Project and the user's home folder | Read for compatibility with the Claude ecosystem. |
CONTEXT.md | Project | Deprecated; prefer ARGY.md. |
Files listed in instructions | Anywhere | Extra paths declared in argy.json. |
The /init command, available in a session, creates or updates ARGY.md from the repository content. See Slash commands and interface.
Configuration keys
A public schema is published at https://argy.cloud/config.json (see the caveat above about its limits). The main keys are listed below.
| Key | Type | Purpose |
|---|---|---|
locale | "en" or "fr" | Interface language. Detected at login, fr by default. |
theme | string | Interface theme name (for example "system"). |
keybinds, tui | object | Shortcuts and settings of the terminal interface. |
shell | string | Shell used by the agent to run commands. |
server | object | Port, hostname, mDNS and CORS of the local server. |
model, small_model | string | Main model and lightweight model, in provider/model format. |
default_agent | string | Startup agent. Must be a primary agent. |
agent | object | Custom agents or overrides of native agents. |
command | object | Custom slash commands. |
run | object | Run configurations (see below). |
skills | object | Extra skill paths (skills.paths). |
instructions | array | Additional instruction files. |
reference | object (string to string) | Named paths, for example "@monorepo": "/path/to/repo". |
permission | object | allow, ask, deny rules per tool. |
exec_policy | object | Per-executable rules (rules). |
tools | object | Enable or disable individual tools. |
mcp, lsp, formatter | object | MCP servers, language servers and formatters. |
plugin | array of strings | Plugins to load. |
provider | object | Model overrides, allow lists and deny lists. |
enabled_providers, disabled_providers | array | Enabled or disabled model sources. |
share | "manual", "auto", "disabled" | Session sharing policy. |
autoupdate | true, false, "notify" | Automatic update. |
snapshot | boolean | Snapshots of file changes. |
watcher.ignore | array | Patterns ignored by file watching. |
attachment | object | Accepted file types and maximum size. |
notifications | object | enabled, sound, blocking, attention (booleans) and channel (auto, osc, system, off). |
compaction | object | History compaction (auto, prune, threshold, tail_turns). |
storage.backup | object | Durable backups of local storage. |
username | string | Name displayed in the interface. |
experimental | object | Experimental features, with no stability guarantee. |
Custom commands
The command key defines slash commands specific to your team. Each command accepts template, description, agent, model and subtask. The template can reference arguments with $1, $2 or $ARGUMENTS.
{
"command": {
"changelog": {
"description": "Summarize changes since the last release",
"agent": "builder",
"template": "Write a changelog from the commits since tag $1.",
},
},
}
A third-party source (MCP server, skill) can never override a built-in or user command: on a name collision, the third-party command is ignored.
Run configurations
A run configuration describes a project command (dev server, tests, build) that you launch and follow from the interface. It is declared under the run key.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Display label. |
command | array of strings | Yes | Command and arguments (at least one element). |
cwd | string | No | Working directory. |
env | object | No | Environment variables specific to the command. |
{
"run": {
"dev": {
"name": "Development server",
"command": ["npm", "run", "dev"],
"cwd": ".",
"env": { "NODE_ENV": "development" },
},
},
}
Launch and monitor these commands with /run and /run-status (see Slash commands and interface). The native runner agent can create and maintain these configurations for you (see Agents and modes). To run Argy Code itself in scripts or CI, see Automation.
Substitutions in values
Configuration files accept two substitutions, evaluated at load time:
| Syntax | Effect |
|---|---|
{env:VARIABLE_NAME} | Inserts the value of an environment variable. |
{file:path} | Inserts the content of a file. |
{
"mcp": {
"my-server": {
"type": "remote",
"url": "https://mcp.example.com",
"headers": { "Authorization": "Bearer {env:MY_TOKEN}" },
},
},
}
These substitutions keep secrets out of versioned files.
Common settings
| Need | Setting |
|---|---|
| Set the default model | "model": "provider/model" |
| Disable a tool for the whole project | "tools": { "bash": false } |
| Disable all automatic formatting | "formatter": false |
| Disable session sharing | "share": "disabled" (or "auto" to share automatically) |
| Disable system notifications | "notifications": { "enabled": false } |
| Follow the terminal theme | "theme": "system" |
| Smooth scrolling in the interface | "tui": { "scroll_acceleration": { "enabled": true } } |
| Use another shell (fish, zsh…) | "shell": "..." |
| Pin the OAuth callback port of a remote MCP server | callbackPort in the matching mcp entry |
| Keep more or fewer recent turns during compaction | compaction.tail_turns |
| Limit an agent's iterations per request | steps in the agent entry |
| Tune an agent's creativity | temperature in the agent entry |
Shortcuts are overridden in the keybinds section; the value none disables a shortcut. The default leader key is Ctrl+X.
Define commands, agents, plugins and themes as files
Instead of declaring everything in argy.json, you can drop files into the project's .argy/ directory (or the global configuration directory).
| Folder | Content | Format |
|---|---|---|
.argy/command/ | Reusable slash commands | .md files; the template accepts $ARGUMENTS, $1, $2. |
.argy/agent/ | Custom agents | .md files. |
.argy/plugin/ | Plugins (event hooks) | .ts or .js files. |
.argy/themes/ | Interface themes | .json files. |
To check what was actually loaded, argy debug config prints the resolved configuration, argy debug paths the global paths and argy debug agent <name> an agent's configuration.
Skills, agents and the .argy directory
The .argy/ directory holds project resources: agents (agent/), skills (skill/ or skills/), tools (tool/, tools/) and agent deliverables (plans, audits, research). Skills in .claude/skills and .agents/skills are also discovered for compatibility. See Extensions.
Public environment variables
| Variable | Effect |
|---|---|
ARGY_PAT | Personal access token for non-interactive or container use. |
ARGY_ENV | Target environment: PROD by default. The --env flag takes precedence; the other values are listed by argy --help. |
ARGY_CONFIG, ARGY_CONFIG_CONTENT | Configuration path or content. |
ARGY_PERMISSION | Permissions injected by the environment. |
ARGY_MAX_DELEGATION_DEPTH | Maximum delegation depth between agents (2 levels by default). |
ARGY_MAX_CONCURRENT_SUBAGENTS | Cap on simultaneous sub-agents. |
ARGY_SERVER_USERNAME, ARGY_SERVER_PASSWORD | Basic authentication for the local server. |
ARGY_NETWORK_PROXY | Network proxy for subprocesses. |
ARGY_BROWSER_TOOL=0 | Disables the browser tools. |
ARGY_BROWSER_HEADED=true | Shows a visible browser window (otherwise automation runs headless). |
ARGY_AGENT_BROWSER_PATH | Uses an existing browser-automation binary (downloads blocked). |
ARGY_AGENT_BROWSER_URL | Downloads that binary from an in-house mirror. |
ARGY_DISABLE_BROWSER_DOWNLOAD=1 | Forbids the download and returns an explicit error if the binary is missing. |
ARGY_DISABLE_AUTOUPDATE, ARGY_DISABLE_AUTOCOMPACT, ARGY_DISABLE_PRUNE | Disable automatic update, automatic compaction and pruning. |
ARGY_DISABLE_EXTERNAL_SKILLS, ARGY_DISABLE_CLAUDE_CODE_SKILLS | Disable discovery of external skills. |
ARGY_DISABLE_LSP_DOWNLOAD | Disables automatic download of language servers. |
ARGY_DISABLE_DEFAULT_PLUGINS | Disables default plugins. |
ARGY_TRIVY_OFFLINE | Runs dependency scans offline. |
ARGY_AGENT_MSG_DISABLED=1 | Turns off coordination between instances of the same user. |
Never put a token in clear text in argy.json: pass it through ARGY_PAT or argy auth login. How tokens work on the platform side is described in Authentication and IAM. The models offered through model and provider come from the LLM Gateway.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| The project configuration seems ignored | Misplaced file or invalid JSON | Check the location (argy.json, .argy/argy.json) and the syntax; run argy debug config. |
| A key is flagged by the editor | The public schema does not know every key Argy Code accepts | Check with argy debug config; the key list on this page is authoritative. |
default_agent has no effect | The agent is not primary | Pick an agent whose mode is primary. |
| A permission rule on a restricted agent does not behave as expected | Safety floors of restricted agents apply after user configuration | See Permissions and security. |