Skip to content

Docs

Quickstart: Codex

Markdown version

You need: the Codex CLI or IDE extension, and an API key in LG_API_KEY.

  1. 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:read to read keys, credits and usage, plus gateway:write to change them. Keep it in an environment variable, never in a file you commit:

    export LG_API_KEY=lg_live_…
  2. Add the server to ~/.codex/config.toml:

    [mcp_servers.restolayer]
    url = "https://manage.restolayer.com/mcp"
    bearer_token_env_var = "LG_API_KEY"
  3. Check it. Check it works: ask the assistant "Who am I in Restolayer?" It calls lg_whoami and answers with your organization, role and scopes.

Next: task recipes and the MCP tools.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.