# Codex

> Adding Advibly to Codex.

Source: https://advibly.com/docs/agents/clients/codex



Add the server to your Codex configuration:

```toml
[mcp_servers.advibly]
url = "https://advibly.com/mcp"
```

Then sign in:

```bash
codex mcp login advibly
```

Restart the Codex session after login so it discovers the server's current
tools.

## Verify the connection [#verify-the-connection]

Ask Codex: “Use Advibly to list my brands and credit balance.” Setup is complete
when both calls return account data without asking for an API key.

For a multi-step production, ask Codex to create or reuse a project, pass its
`project_id` on every generation, and report the planned billable calls before
starting. The worked [use cases](/use-cases/launch-campaign-image-set) provide
complete execution paths.

If login succeeds but no Advibly tools appear, start a new session. If a call
returns `401`, run `codex mcp login advibly` again.
