# Connect Codex to Skillfiles

> Add your Skillfiles library to Codex with two commands, approve it in your browser and check the connection. Setup takes about a minute.

Add your Skillfiles library to Codex with two commands. Codex signs in through OAuth, so there are no API keys to manage. Setup takes about a minute and needs a Skillfiles account. The same page for people is at https://skillfiles.dev/docs/connect-codex.

Add the library, then sign in:

~~~sh
codex mcp add skillfiles --url https://app.skillfiles.dev/mcp
codex mcp login skillfiles
~~~

Adds the library to Codex. This may also start the browser sign-in straight away, or print the address to open if no browser can open. If it does, you don't need the login command. Opens your browser to approve Codex.

With no browser on the machine, for example over SSH, run this instead:

~~~sh
codex mcp login skillfiles --no-browser
~~~

Prints the sign-in address instead of opening a browser. Open it on any machine, approve Codex, then paste the address your browser lands on back into the terminal.

Sign in, verify that the request is from the agent you added and select **Approve**. After approval, the agent receives an access token that expires after 15 minutes. It refreshes the token automatically, so you normally do not need to sign in again. To view or revoke agent access, open the [connections page](https://app.skillfiles.dev/connections).

The MCP endpoint is https://app.skillfiles.dev/mcp: Streamable HTTP with OAuth. The client starts the OAuth flow, the library's owner signs in through their browser and approves the named client, and the client receives tokens with the scopes `skillfiles` and `offline_access`. Tested clients are Claude Code and Codex; other MCP clients that support OAuth should work but are not tested.

## Related

- Previous: [Connect Claude Code](https://skillfiles.dev/docs/connect-claude-code.md)
- Next: [Connect Cursor or another client](https://skillfiles.dev/docs/connect-mcp-client.md)
- [All documentation](https://skillfiles.dev/docs.md)
- [Plans and limits](https://skillfiles.dev/pricing)
