Docs / How-to guides
Connect Cursor
Cursor connects with an access token that it reads from an environment variable, so the token never sits in a config file.
Steps
-
In Reliquary, open Tokens and create a token:
- name it after the agent and machine, like
Cursor on my laptop; - choose its vaults and Read only or Read and write;
- choose when it expires (90 days is the default).
- name it after the agent and machine, like
-
Copy the token. It is shown once.
-
Set it as
RELIQUARY_TOKENin the environment Cursor starts from, for example in your shell profile, then start Cursor from a new shell. Paste it in your own terminal, never in a chat:export RELIQUARY_TOKEN='paste-the-token-here' -
Add Reliquary with the add Reliquary to Cursor link on your Connect page, or put this in
~/.cursor/mcp.json:{ "mcpServers": { "reliquary": { "url": "https://mcp.reliquary.redmage.cc/mcp", "headers": { "Authorization": "Bearer ${env:RELIQUARY_TOKEN}" } } } } -
In Cursor's MCP settings, check that reliquary is enabled and lists its tools.
Keep the token safe
- Never paste it into a chat or a file an agent can read. Anything an agent can read, it can leak.
- If it leaks, revoke it: see Rotate a leaked token.
- It expires on the date you chose; make a new one then.
For agents: this page as Markdown, and every page at /llms.txt.