Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hexclave.com/llms.txt

Use this file to discover all available pages before exploring further.

This page is for giving your own coding agent (Claude Code, Cursor, Codex, opencode, …) ongoing knowledge of Stack Auth so it writes Stack Auth code correctly.If you would like to use Stack Auth to power your own CLI, see the CLI Authentication page.
There are three ways to give a coding agent working knowledge of Stack Auth. They differ only in how the instructions reach the agent — the knowledge is the same.

Web Fetch

Paste a one-line prompt — your agent fetches the live skill on demand.

Skill

Install the Stack Auth SKILL.md file so your agent loads it automatically.

MCP

Connect your agent to the Stack Auth MCP server for live docs and ask_stack_auth search.
Most coding agents now support web fetch out of the box, so you can simply tell your agent to use Hexclave’s skill from the internet. To do so, paste the prompt below into your coding agent:
One-shot prompt
Fetch https://skill.stack-auth.com and follow it for this task.
The fetched SKILL.md indexes the entire Stack Auth docs sidebar and tells the agent to pull fresh content for whichever surface you’re touching (auth, orgs/teams, payments, emails, analytics, the CLI). It is purely a reference — paste it whenever you want the agent to use Stack Auth knowledge.

Option 2: Skill

Install the skill once so your agent loads it automatically every time Stack Auth is relevant — no copy-paste required.
The fastest way to install the Stack Auth skill for a Claude Code-style agent or similar:
Terminal
npx -y skills add stack-auth/stack-auth --skill stack-auth
This detects your agent and installs the skill in the correct location (per-project or global) automatically. From then on, your agent picks it up whenever the conversation touches Stack Auth.

Option 3: MCP

The Stack Auth MCP server (https://mcp.stack-auth.com/mcp) gives your agent live access to Stack Auth docs and skill via prompts, resources and an ask_stack_auth tool that searches the docs with citations. Install it once per agent — it stays available across every project.

Add to Cursor

Opens Cursor and adds stack-auth to your MCP config.

Add to VS Code

Opens VS Code and adds stack-auth to your MCP config.
For the up-to-date list of one-click install buttons for every client (Cursor, VS Code, Claude Desktop, Windsurf, ChatGPT, Gemini, …), visit mcp.stack-auth.com in your browser.

Project vs. global scope

The install prompts above follow the same rule for picking project-vs-global scope:
Detected in project rootSkill / MCP install scope
.claude/, .cursor/, .vscode/mcp.json, .codex/, .opencode/Project (inside the existing folder)
None of the aboveGlobal (user-level config for the detected agent)
This keeps shared repos clean (project-scoped config lives next to the code) and keeps your personal projects ergonomic (one global install, available everywhere).