Configuration
Configuration
Section titled “Configuration”LNAI uses two JSON files for configuration: config.json for tool settings and settings.json for shared configuration.
config.json
Section titled “config.json”Controls which tools are enabled and their sync behavior.
.ai/config.jsonSchema
Section titled “Schema”{ "tools": { "claudeCode": { "enabled": true, "versionControl": false }, "opencode": { "enabled": true, "versionControl": false } }}| Field | Type | Description |
|---|---|---|
enabled | boolean | Whether to sync configuration to this tool |
versionControl | boolean | Track generated files in git (default: false) |
If config.json is missing, all tools are synced by default.
settings.json
Section titled “settings.json”Contains shared configuration that applies to all tools.
.ai/settings.jsonSchema
Section titled “Schema”{ "permissions": { "allow": ["Bash(git:*)"], "ask": ["Bash(npm:*)"], "deny": ["Read(.env)"] }, "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-memory"] } }, "overrides": { "claudeCode": { "model": "opus" }, "opencode": { "theme": "dark" } }}Permissions
Section titled “Permissions”Control what operations AI tools can perform.
| Level | Behavior |
|---|---|
allow | Operation runs automatically |
ask | User must confirm |
deny | Operation is blocked |
Format
Section titled “Format”Permissions use the format: Tool(pattern)
| Tool | Operations |
|---|---|
Bash | Shell commands |
Read | File reading |
Write | File writing |
Edit | File editing |
Example
Section titled “Example”{ "permissions": { "allow": ["Bash(git status)", "Bash(pnpm test)"], "ask": ["Bash(git:*)", "Bash(npm:*)"], "deny": ["Read(.env)", "Read(*.pem)"] }}MCP Servers
Section titled “MCP Servers”Configure Model Context Protocol servers.
Stdio (Local)
Section titled “Stdio (Local)”{ "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-memory"] } }}HTTP/SSE (Remote)
Section titled “HTTP/SSE (Remote)”{ "mcpServers": { "api": { "type": "http", "url": "https://mcp.example.com", "headers": { "Authorization": "Bearer ${API_KEY}" } } }}Use ${VAR} syntax for environment variables.