Update cli config

From Kevin-Liu-01/Agent-Machines · View interactive version

Update cli config is an AI agent skill from the GitHub repository Kevin-Liu-01/Agent-Machines. View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

How to use this skill

Skill file

Cursor CLI Configuration

This skill explains how to view and modify Cursor CLI settings stored in ~/.cursor/cli-config.json.

Config File Location

The config file is ~/.cursor/cli-config.json.

Projects can layer overrides via .cursor/cli.json files. The CLI walks from the git root to the current working directory and merges each .cursor/cli.json it finds (deeper files take precedence). Project overrides only affect the current session; they are not written back to the home config.

How to Modify

Read ~/.cursor/cli-config.json, apply changes, and write it back. The file is standard JSON. Changes take effect after restarting the CLI.

Available Settings

`permissions` (required)

Tool permission rules. Each entry is a string pattern.

`editor`

`display` (optional)

`channel` (optional)

Release channel: "prod" | "staging" | "lab" | "static"

`maxMode` (optional)

boolean (default: false) — enable max mode for higher-quality model responses

`approvalMode` (optional)

Controls tool approval behavior:

`sandbox` (optional)

Sandbox execution environment settings:

`network` (optional)

`bedrock` (optional)

AWS Bedrock integration settings:

`attribution` (optional)

Controls how agent work is attributed in git:

`webFetchDomainAllowlist` (optional)

string[] — domains the web fetch tool is allowed to access (e.g. "docs.github.com", "*.example.com", "*")

Fields You Should NOT Modify

These are internal/cached state and should not be edited manually:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.