Skip to content

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.

LocationScopeNotes
argy.json or argy.jsonc at the project rootProjectCan be versioned with the code; .jsonc allows comments.
.argy/argy.jsonProjectAlternative that keeps the repository root clean.
User configuration directoryGlobalPersonal settings shared by all projects.
ARGY_CONFIG variableExplicit filePath to a configuration file to load.
ARGY_CONFIG_CONTENT variableInlineJSON 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.

FileWhereNotes
ARGY.mdProject, configuration folder, globalMain instruction file.
CLAUDE.mdProject and the user's home folderRead for compatibility with the Claude ecosystem.
CONTEXT.mdProjectDeprecated; prefer ARGY.md.
Files listed in instructionsAnywhereExtra 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.

KeyTypePurpose
locale"en" or "fr"Interface language. Detected at login, fr by default.
themestringInterface theme name (for example "system").
keybinds, tuiobjectShortcuts and settings of the terminal interface.
shellstringShell used by the agent to run commands.
serverobjectPort, hostname, mDNS and CORS of the local server.
model, small_modelstringMain model and lightweight model, in provider/model format.
default_agentstringStartup agent. Must be a primary agent.
agentobjectCustom agents or overrides of native agents.
commandobjectCustom slash commands.
runobjectRun configurations (see below).
skillsobjectExtra skill paths (skills.paths).
instructionsarrayAdditional instruction files.
referenceobject (string to string)Named paths, for example "@monorepo": "/path/to/repo".
permissionobjectallow, ask, deny rules per tool.
exec_policyobjectPer-executable rules (rules).
toolsobjectEnable or disable individual tools.
mcp, lsp, formatterobjectMCP servers, language servers and formatters.
pluginarray of stringsPlugins to load.
providerobjectModel overrides, allow lists and deny lists.
enabled_providers, disabled_providersarrayEnabled or disabled model sources.
share"manual", "auto", "disabled"Session sharing policy.
autoupdatetrue, false, "notify"Automatic update.
snapshotbooleanSnapshots of file changes.
watcher.ignorearrayPatterns ignored by file watching.
attachmentobjectAccepted file types and maximum size.
notificationsobjectenabled, sound, blocking, attention (booleans) and channel (auto, osc, system, off).
compactionobjectHistory compaction (auto, prune, threshold, tail_turns).
storage.backupobjectDurable backups of local storage.
usernamestringName displayed in the interface.
experimentalobjectExperimental 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.

FieldTypeRequiredDescription
namestringNoDisplay label.
commandarray of stringsYesCommand and arguments (at least one element).
cwdstringNoWorking directory.
envobjectNoEnvironment 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:

SyntaxEffect
{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

NeedSetting
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 servercallbackPort in the matching mcp entry
Keep more or fewer recent turns during compactioncompaction.tail_turns
Limit an agent's iterations per requeststeps in the agent entry
Tune an agent's creativitytemperature 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).

FolderContentFormat
.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

VariableEffect
ARGY_PATPersonal access token for non-interactive or container use.
ARGY_ENVTarget environment: PROD by default. The --env flag takes precedence; the other values are listed by argy --help.
ARGY_CONFIG, ARGY_CONFIG_CONTENTConfiguration path or content.
ARGY_PERMISSIONPermissions injected by the environment.
ARGY_MAX_DELEGATION_DEPTHMaximum delegation depth between agents (2 levels by default).
ARGY_MAX_CONCURRENT_SUBAGENTSCap on simultaneous sub-agents.
ARGY_SERVER_USERNAME, ARGY_SERVER_PASSWORDBasic authentication for the local server.
ARGY_NETWORK_PROXYNetwork proxy for subprocesses.
ARGY_BROWSER_TOOL=0Disables the browser tools.
ARGY_BROWSER_HEADED=trueShows a visible browser window (otherwise automation runs headless).
ARGY_AGENT_BROWSER_PATHUses an existing browser-automation binary (downloads blocked).
ARGY_AGENT_BROWSER_URLDownloads that binary from an in-house mirror.
ARGY_DISABLE_BROWSER_DOWNLOAD=1Forbids the download and returns an explicit error if the binary is missing.
ARGY_DISABLE_AUTOUPDATE, ARGY_DISABLE_AUTOCOMPACT, ARGY_DISABLE_PRUNEDisable automatic update, automatic compaction and pruning.
ARGY_DISABLE_EXTERNAL_SKILLS, ARGY_DISABLE_CLAUDE_CODE_SKILLSDisable discovery of external skills.
ARGY_DISABLE_LSP_DOWNLOADDisables automatic download of language servers.
ARGY_DISABLE_DEFAULT_PLUGINSDisables default plugins.
ARGY_TRIVY_OFFLINERuns dependency scans offline.
ARGY_AGENT_MSG_DISABLED=1Turns 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

SymptomLikely causeFix
The project configuration seems ignoredMisplaced file or invalid JSONCheck the location (argy.json, .argy/argy.json) and the syntax; run argy debug config.
A key is flagged by the editorThe public schema does not know every key Argy Code acceptsCheck with argy debug config; the key list on this page is authoritative.
default_agent has no effectThe agent is not primaryPick an agent whose mode is primary.
A permission rule on a restricted agent does not behave as expectedSafety floors of restricted agents apply after user configurationSee Permissions and security.

See also