Cline configuration lives in two scopes:Documentation Index
Fetch the complete documentation index at: https://docs.cline.bot/llms.txt
Use this file to discover all available pages before exploring further.
- Global configuration in
~/.cline/(applies globally across all Cline applications, including IDE, CLI, and SDK) - Project configuration in
.cline/(applies only to the current workspace)
Configuration Directory Layout
Cline stores shared configuration across a few well-known locations. The primary root is~/.cline/, with structured app state under ~/.cline/data/:
.cline/ at your repository root:
- Global provider settings, global settings, and MCP settings are stored under
~/.cline/data/settings/. - Global workflows resolve from
~/.cline/data/workflows/. - Global rules, hooks, skills, agents, plugins, and cron specs resolve directly under
~/.cline/. - Rules, hooks, plugins, and workflows may also be discovered from
~/Documents/Cline/for compatibility.
What Goes Where?
- Use global (
~/.cline/) for defaults shared across all Cline applications (IDE, CLI, SDK) on your machine. - Use project (
.cline/) for team-shared behavior that should travel with the repo.
.cline/ files you want to share with your team. Keep secrets out of the repo.
Configure Through the CLI
Use the interactive config UI:- Settings (global + workspace)
- Rules
- Skills
- Hooks
Useful Configuration Commands
Use a custom configuration directory:Environment Variables
| Variable | Description |
|---|---|
CLINE_DATA_DIR | Custom data directory (replaces ~/.cline/data/) |
CLINE_HUB_ADDRESS | Override hub address (default: 127.0.0.1:25463) |
CLINE_SESSION_BACKEND_MODE | Force backend mode (local, hub, remote, auto) |
CLINE_SANDBOX | Enable sandbox mode |
CLINE_SANDBOX_DATA_DIR | Sandbox session storage directory |
CLINE_HOOKS_DIR | Additional hooks directory |
CLINE_COMMAND_PERMISSIONS | JSON policy restricting shell commands |
CLINE_DATA_DIR
CLINE_COMMAND_PERMISSIONS
Restrict which shell commands Cline can execute:denyoverridesallow- If
allowis set, commands not matchingalloware denied allowRedirectscontrols shell redirects (>,>>,<), defaultfalse

