Skip to main content
How-to

Connect Claude Code

Point Claude Code at one local LightNow Proxy. From there, use LightNow to choose the MCP servers Claude should see, keep secrets out of the client file, and inspect what happened after a run.

Claude Code setupClaude Code starts one Local Proxy; LightNow manages the server set
AI clientClaude Codereads its MCP server list from ~/.claude.json
stdio
MCP ServerLightNow Proxyserves the selected Runtime Profile through one local entry
LightNow
LightNowConfig + Analyzeprofile, workspace, policy, events and tool usage

Fast setup

1
Install LightNow

Install the CLI and the local proxy on this machine.

2
Sign in

Sign in so LightNow can use your account and selected workspace.

3
Sync Claude Code

Replace direct MCP entries with one LightNow Proxy entry.

4
Restart Claude Code

Start a fresh Claude Code session so the MCP server list is loaded again.

Recommended for macOS
brew tap lightnow-ai/tap
brew install lightnow-cli lightnow-proxy
lightnow login
lightnow sync --client claude-code --local-proxy
Windows or Linux
Windows
py -m pip install --user pipx
py -m pipx ensurepath
py -m pipx install lightnow-cli
py -m pipx install lightnow-proxy
lightnow login
lightnow sync --client claude-code --local-proxy
Linux
python3 -m pip install --user pipx
python3 -m pipx ensurepath
python3 -m pipx install lightnow-cli
python3 -m pipx install lightnow-proxy
lightnow login
lightnow sync --client claude-code --local-proxy

Config files

These are the files LightNow touches for Claude Code:

Claude Code config
~/.claude.json
Local Proxy config
~/.lightnow/lightnow-proxy/claude-code.yaml

What gets written

Claude Code reads MCP servers from JSON. After sync, that JSON contains one top-level mcpServers.LightNow entry:

~/.claude.json
{
"mcpServers": {
"LightNow": {
"command": "lightnow-proxy",
"args": [
"--config",
"~/.lightnow/lightnow-proxy/claude-code.yaml",
"--transport",
"stdio"
]
}
}
}

When LightNow can resolve the full lightnow-proxy path, it writes the absolute path. The proxy YAML stores the Claude Code client name, stdio transport, selected Runtime Profile, workspace context, policy settings, telemetry preference and secret-resolution mode. Claude Code does not receive the commands, URLs or secret values for every server in the profile.

Existing Claude Code config

When Local Proxy mode replaces direct MCP entries, LightNow removes the top-level JSON mcpServers and servers sections, then adds LightNow. Other Claude settings stay in the file, including project-level data under projects.

Run import first when your current Claude Code config contains servers you want to keep:

Import before replacing direct Claude Code entries
lightnow import-config --client claude-code
lightnow sync --client claude-code --local-proxy

Team rollout

For a managed team rollout, switch to the organization context first, then let policy drive the sync:

Use LightNow-managed client policy
lightnow context --tenant acme
lightnow sync --client claude-code --from-settings
lightnow config-status --client claude-code --json

--from-settings lets LightNow choose the profile, telemetry setting, managed clients and unmanaged-entry policy for Claude Code. Use it after the organization profile is ready and the pilot setup works as expected.