> ## Documentation Index
> Fetch the complete documentation index at: https://docs.westhetics.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Conectar no Codex

> codex mcp add e codex mcp login: a Westhetics no Codex por OAuth, ou com a chave de um app numa variável de ambiente.

## Por OAuth

```bash theme={null}
codex mcp add westhetics --url https://mcp.westhetics.io
codex mcp login westhetics
```

O `login` abre o navegador na Westhetics: entre e confira a tela da Westhetics **Conectar o … à sua conta?**, com o nome do aplicativo. Dentro de uma sessão, `/mcp` mostra a conexão e as ferramentas.

## Com a chave de um app

O Codex lê a chave de uma variável de ambiente, sem gravá-la na configuração:

```bash theme={null}
export WESTHETICS_API_KEY="wx_…"
codex mcp add westhetics --url https://mcp.westhetics.io --bearer-token-env-var WESTHETICS_API_KEY
```

O mesmo em `~/.codex/config.toml`:

```toml theme={null}
[mcp_servers.westhetics]
url = "https://mcp.westhetics.io"
bearer_token_env_var = "WESTHETICS_API_KEY"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.