Docs
Quickstart: Claude Code
You need: Claude Code, and an API key in LG_API_KEY.
Get a key. Sign up at https://app.restolayer.com/sign-up. An owner creates a key in Settings → API keys and picks its scopes:
gateway:readto read keys, credits and usage, plusgateway:writeto change them. Keep it in an environment variable, never in a file you commit:export LG_API_KEY=lg_live_…Add the server (for this project; use
--scope userfor all your projects):claude mcp add --transport http restolayer https://manage.restolayer.com/mcp --header "Authorization: Bearer $LG_API_KEY"The shell fills in
$LG_API_KEY, so Claude Code stores the key itself in~/.claude.json: keep it at local or user scope, never--scope project(that file is shared). To keep only a reference, use thelgCLI instead:lg install claude-codewrites the project's.mcp.jsonand a skill, which refer to${LG_API_KEY}and never contain the key.- Check it. Check it works: ask the assistant "Who am I in Restolayer?" It calls
lg_whoamiand answers with your organization, role and scopes.
Next: task recipes, the MCP tools, and what an agent can do alone.