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

# Codex CLI setup

> Common installation, client-specific skills, free verification, and troubleshooting

Codex can execute media tasks through EvoLink CLI. This page covers host environment and skill differences; [installation and sign-in](https://evolink.ai/docs/en/cli/setup.md) owns the complete common procedure. For native tools, use the [MCP guide](https://evolink.ai/docs/en/mcp/codex.md) directly.

## Ask your agent to install

Paste the following into the agent conversation. It matches the website prompt. Complete browser sign-in and permission review yourself.

```text theme={null}
Set up EvoLink so I can generate images, video and audio directly here.
1. Install the CLI: run `npm install -g @evolinkai/cli`.
2. Sign in: run `evolink auth login`.
3. Install the companion skill: run `evolink skills install`.
4. Verify the connection. Once successful, tell me I can get started.
```

## Three steps for this client

**1. Complete common installation and sign-in**

Install on the machine and OS user that executes Codex commands; remote sessions are separate environments.

First-time users should open the [five-step guide](https://evolink.ai/docs/en/cli/setup.md#cli-install): check Node.js 22+, install CLI, and complete browser sign-in. It includes commands, success indicators, and troubleshooting. If already done, verify:

```bash theme={null}
evolink --version
evolink auth status --json
```

Look for a CLI version and authenticated: true. See [installation errors](https://evolink.ai/docs/en/cli/billing.md#cli-install), [sign-in errors](https://evolink.ai/docs/en/cli/billing.md#login), or [SSH callbacks](https://evolink.ai/docs/en/cli/setup.md#ssh-login) for the failed stage.

**2. Synchronize this agent's skill and verify discovery**

```bash theme={null}
evolink skills install --agent codex
evolink skills status --agent codex --json
```

The directory is \~/.agents/skills/evolink-cli. current: true means files match the CLI. Ask the agent:

```text theme={null}
Confirm this session can discover and read the evolink-cli skill. Verify access without generating media.
```

assistant\_discovery: not\_checked still requires host verification. Follow [skill discovery](https://evolink.ai/docs/en/cli/billing.md#skills-discovery) if files exist but are unused. Review required execution permissions and preserve personal modifications.

**3. Verify for free before creating media**

```bash theme={null}
evolink balance --json
evolink doctor --agent codex --json
```

Setup is complete when balance returns account data, doctor reports ok, connection\_verified, and model\_discovery\_verified as true, and the agent confirms reading the skill. These queries do not create paid media tasks. Zero balance can still verify connectivity.

### Combined setup for an installed CLI

```bash theme={null}
evolink setup --agent codex --json
```

This checks the environment, synchronizes skills, signs in when needed, and verifies access. Look for setup\_complete: true; host discovery still needs confirmation. Use phase, steps, error, and recovery to identify failures.

## Update and sign out

Starting with CLI 0.10.0, the CLI announces new releases itself; see [How to know a new version exists](https://evolink.ai/docs/en/cli/setup.md#update-check). After updating the CLI, synchronize the current agent’s skill:

```bash theme={null}
npm install -g @evolinkai/cli@latest
evolink --version
evolink skills install --agent codex
evolink skills status --agent codex --json
```

Local changes are preserved; handle `modified` or `conflict` under [skill troubleshooting](https://evolink.ai/docs/en/cli/billing.md#skills-discovery). Run the following only when you want to sign out of the CLI; it is not an installation or update step.

```bash theme={null}
evolink auth logout
```

## Troubleshooting starting points

| Symptom | Next step |
| - | - |
| Missing npm/evolink, permissions, installation timeout | [Environment and installation](https://evolink.ai/docs/en/cli/billing.md#cli-install) |
| Browser did not open, OAuth timeout, credential storage error | [Login and callbacks](https://evolink.ai/docs/en/cli/billing.md#login); [SSH login](https://evolink.ai/docs/en/cli/setup.md#ssh-login) |
| Skill installed but agent does not use it | [Skill discovery and execution permission](https://evolink.ai/docs/en/cli/billing.md#skills-discovery) |
| Submitted task timed out or result was lost | [Recover the original task](https://evolink.ai/docs/en/cli/billing.md#tasks-and-recovery) |

After connecting, follow the [first media workflow](https://evolink.ai/docs/en/cli/workflows.md#workflows): inspect models, parameters, and costs, approve, then submit. Full commands are in [CLI command reference](https://evolink.ai/docs/en/cli/reference.md).


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