# Connect Claude Code to Skillfiles

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

Add your Skillfiles library to Claude Code with two commands. Claude Code 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-claude-code.

Add the library, then sign in:

~~~sh
claude mcp add --transport http --scope user skillfiles https://app.skillfiles.dev/mcp
claude mcp login skillfiles
~~~

Adds the library to Claude Code for every project on this machine. Opens your browser to approve Claude Code. When sign-in works it prints: Authenticated with "skillfiles". Its tools are now available in Claude Code. `claude mcp list` then shows `skillfiles: https://app.skillfiles.dev/mcp (HTTP) - ✔ Connected`. Inside a Claude Code session, type /mcp, choose skillfiles and pick Authenticate.

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

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

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

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

- Next: [Connect Codex](https://skillfiles.dev/docs/connect-codex.md)
- [All documentation](https://skillfiles.dev/docs.md)
- [Plans and limits](https://skillfiles.dev/pricing)
