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.
Fast setup
Install the CLI and the local proxy on this machine.
Sign in so LightNow can use your account and selected workspace.
Replace direct MCP entries with one LightNow Proxy entry.
Start a fresh Claude Code session so the MCP server list is loaded again.
brew tap lightnow-ai/tap brew install lightnow-cli lightnow-proxy lightnow login lightnow sync --client claude-code --local-proxy
Windows or Linux
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
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.json
~/.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:
{
"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:
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:
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.
Related guides
Bring useful Claude Code MCP entries into a Runtime Profile before replacing the local file.
Use config-status, proxy health JSON and redacted protocol capture when
Claude Code cannot see tools.
Compare client targets, default paths, Local Proxy support and import support across Codex, Claude, Cursor, VS Code and others.