# Set up Codex CLI

Every request goes to one base URL, `https://manage.restolayer.com`, with a key you create in the console (Keys). Models are named `maker/model`; the list is at `https://manage.restolayer.com/v1/models` and on the Models page.
Each response carries the request's id (`x-generation-id`), the route it took (`x-lg-route`) and its cost in `usage`. Errors and empty answers are never charged.

Add a provider to `~/.codex/config.toml` and choose it:

```toml
[model_providers.lg]
name = "Restolayer"
base_url = "https://manage.restolayer.com/v1"
env_key = "LG_KEY"
wire_api = "chat"
```

Create a key in the console under Keys; give it a spending limit if an agent uses it.
