Skip to main content

Connect Your Own AI

Last updated 2026-11-26 · 10 min

Overview

Garnet runs no AI. You choose which notes your AI client can read. A connection starts empty. You pick the items, tags and types.

Connect your own AI lets an AI client you already use, such as Claude, Codex, Cursor or Raycast, search and read the parts of a Space you pick, and write to a notebook of its own. It is free on every plan, needs no account, and works in the Garnet app for Mac, Windows and Linux.

Garnet sends nothing to any AI provider itself. Your AI client asks Garnet, Garnet answers with what you granted, and the client sends that to its provider. What your AI reads goes to its provider, under its terms.

What a connection can and cannot do

  • It starts empty. A new connection reads nothing until you add notes, tasks, Journal entries, tags, all notes or all tasks.
  • Some items are never shared, whatever you grant: items marked private, imported or clipped items, People, Places, Life Events and Collections, archived items and anything in Space Trash.
  • Journal entries are shared only one by one, never by tag or by "All notes". Journal entries often mention people and places, and your AI and its provider will read what you write there.
  • Tags mean the Tags property. A tag grant matches tags in an item's Tags property, not #tags typed in the text.
  • Garnet strips what you did not write for others: frontmatter, hidden comments (%%…%% and <!-- … -->), images, attachments and links to items you did not grant.
  • Garnet must be running and unlocked. Its window does not need to be open: while a connection is active, Garnet keeps running in the background when you close its window, and keeps the connection's Space ready. Turn on Keep Garnet running in the background in Settings › General to keep Garnet in the menu bar (Mac) or system tray (Windows, Linux) whenever its windows are closed. To have it running after a restart, turn on Start Garnet at login in Settings › General. While Garnet is locked, connections answer nothing, unless you turn on Works while Garnet is locked for one of them. Then App Lock no longer protects the notes you granted it from anyone who can use that AI on this computer.
  • A grant limits only what Garnet gives. An agent that can run commands or read files can read your whole Space folder. Use a separate Space for it, or keep it in a sandbox. Your Space is plain local files, so a grant cannot stop a program that opens them directly.
  • A connection ID is not a password. Any app on this computer that knows it can use it. Treat it as a label that picks a grant, and disconnect a connection you no longer use. Add an access token if you want the connection to answer only clients that have it.

Steps

1. Create a connection

  1. Open Settings › AI connections.
  2. Give the new connection a name, such as "Claude Desktop".
  3. Under Ends after, choose 1 day, 7 days, 30 days or Never.
  4. Select Create connection. The card shows Active and the connection ID (conn_…).

2. Choose what this AI can read

Under What this AI can read, add any of:

  • single notes, tasks or Journal entries, by searching their titles;
  • tags, separated by commas (only tags in an item's Tags property count);
  • All notes, or All tasks.

Select Save. You can change this later, and the change applies on the next call.

3. Install the command line tool

Your AI client starts Garnet's command line tool, garnet, to talk to the app.

  • Mac and Linux: in Settings › AI connections › Command line tool, select Install. Garnet writes the tool to ~/.local/bin/garnet and shows the path. If ~/.local/bin is not on your PATH, Settings shows the line to add.
  • Windows: Settings shows the full command to run instead. Use the MCP client setup from Settings, described next, rather than typing garnet.

An agent that can run commands or read files can read your whole Space folder. Use a separate Space for it, or keep it in a sandbox.

4. Copy the setup for your AI client

Each connection card has an MCP client setup block with a Copy setup button. It already holds the right path and your connection ID, so copy it from there when you can. On a Mac it looks like this:

{
  "mcpServers": {
    "garnet": {
      "command": "/Users/<you>/.local/bin/garnet",
      "args": ["mcp", "--connection", "conn_…"]
    }
  }
}

On Linux the path is /home/<you>/.local/bin/garnet. On Windows the copied block names the Garnet app itself instead of garnet. Use full paths: desktop AI apps often do not read the PATH your terminal uses.

In the examples below, replace <you> with your user name and conn_… with your connection ID. If you set up more than one connection in the same client, give each one its own name, such as garnet-journal, instead of garnet.

Garnet for Claude Desktop, Claude Code and Cowork

For Claude, Garnet does the setup below for you:

Neither changes the boundary: a grant limits only what Garnet gives, an agent that can run commands or read files can read your whole Space folder, and what your AI reads goes to its provider, under its terms. A connection used with either starts read-only: turn on Allow notebook writes on its card to let the AI add to its notebook.

Set up your AI client

What your AI reads goes to its provider, under its terms. This applies to every client below. These steps follow each client's own documentation as checked on 25 November 2026, and clients change their settings screens often, so follow the linked page if yours looks different.

Claude Desktop

What your AI reads goes to its provider, under its terms. On a Mac, Install Garnet in Claude Desktop does this for you. To set it up by hand instead:

  1. In the Claude menu, open Settings, then the Developer tab, and select Edit Config.
  2. Paste the block from Copy setup into claude_desktop_config.json. If the file already has an mcpServers section, add the garnet entry inside it.
  3. Quit Claude Desktop completely and open it again.

The file lives at ~/Library/Application Support/Claude/claude_desktop_config.json on a Mac, %APPDATA%\Claude\claude_desktop_config.json on Windows and ~/.config/Claude/claude_desktop_config.json on Linux. Source: Connect to local MCP servers.

Claude Code

What your AI reads goes to its provider, under its terms. Claude Code can run commands and read files, so it can read your whole Space folder if it runs where that folder is reachable. Use a separate Space for it, or keep it in a sandbox.

claude mcp add --transport stdio --scope user garnet -- ~/.local/bin/garnet mcp --connection conn_…

On Windows, replace ~/.local/bin/garnet with the command and arguments from Copy setup. --scope user makes Garnet available in all your projects. Leave it out to add it to the current project only. Avoid --scope project, which writes the connection ID into a file in that project's repository. Source: Connect Claude Code to tools via MCP.

Codex

What your AI reads goes to its provider, under its terms. Codex can run commands and read files, so it can read your whole Space folder if it runs where that folder is reachable. Use a separate Space for it, or keep it in a sandbox.

Codex uses TOML, so the JSON block from Settings does not paste in. On Windows, use the command and arguments from Copy setup in place of the path below. Either run:

codex mcp add garnet -- ~/.local/bin/garnet mcp --connection conn_…

or add this to ~/.codex/config.toml, with the full path written out:

[mcp_servers.garnet]
command = "/Users/<you>/.local/bin/garnet"
args = ["mcp", "--connection", "conn_…"]

The Codex CLI, its IDE extension and the ChatGPT desktop app share this file. In place of --connection conn_…, you can set Use with to Codex (manual setup) on the connection's card and pass --plugin chatgpt; the connection then starts read-only, as for the Claude plugin. Garnet has no listed plugin for Codex: OpenAI lists plugins with a local MCP server only after it allowlists the developer. Codex's own sandbox stops garnet commands in its shell (checked with Codex CLI 0.153.0 on a Mac, 26 November 2026); the MCP server Codex starts is not affected. Keep Garnet out of a project's .codex/config.toml, which would put the connection ID in that project. Source: Model Context Protocol in Codex.

Cursor

What your AI reads goes to its provider, under its terms. Cursor's agent can run commands and read files, so it can read your whole Space folder if that folder is reachable. Use a separate Space for it, or keep it in a sandbox.

Add this to ~/.cursor/mcp.json in your home folder (create it if it does not exist):

{
  "mcpServers": {
    "garnet": {
      "type": "stdio",
      "command": "/Users/<you>/.local/bin/garnet",
      "args": ["mcp", "--connection", "conn_…"]
    }
  }
}

Keep it in the home folder file, not a project's .cursor/mcp.json, so the connection ID stays out of the project. Source: Cursor: Model Context Protocol.

Raycast

What your AI reads goes to its provider, under its terms.

  1. Open the Install MCP Server command.
  2. Give it a name, such as Garnet.
  3. Set Transport to Standard Input/Output.
  4. Set Command to the full path, such as /Users/<you>/.local/bin/garnet.
  5. Set Arguments to mcp --connection conn_….
  6. Select Install MCP Server.

Raycast's MCP features depend on your Raycast plan; its manual says which. Source: Raycast Manual: Model Context Protocol.

What your AI can do

ToolWhat it does
searchFinds granted items by words in their title or text.
listLists granted items, most recently updated first.
readReads one granted item as Markdown.
notebook_appendAdds a dated section to this connection's own notebook.

The notebook is an ordinary note in your Space, titled after the connection ("Claude Desktop notebook"). You can read, edit or delete it. Garnet refuses an append that contains hidden comments, HTML, images or links other than web and email links.

You can run the same tools yourself from a terminal:

garnet search garden --connection conn_…
garnet read <item id> --connection conn_… --json
garnet status --connection conn_…

Access tokens

An access token makes a connection answer only the AI clients and scripts that send it.

  1. On the connection's card, under Access tokens, type a name for where you will use it, such as "Laptop", pick when it ends, and select Create token.
  2. Copy the token, or Copy setup with token for your MCP client. Garnet shows the token only once and keeps no copy it could show again.
  3. Give it to your client as GARNET_TOKEN, as the copied setup does, or to the command line tool:
GARNET_TOKEN=gct_… garnet list
  • A connection can have several tokens, one per client, each with its own end date. Delete token stops that token on its next call.
  • Once a connection has had a token, it answers only calls that carry one of its active tokens, even after you delete its last one. Create a new token to use it again.
  • Prefer GARNET_TOKEN over --token: other programs on your computer can see the commands you run.
  • A token keeps other clients out, not other apps on your computer: any app that can read your AI client's settings can read the token there.

Local REST API

Scripts on this computer can use your connections over HTTP, with an access token. It answers only while a connection with an access token is active.

Garnet answers on a private socket that only your account can open. Settings › AI connections shows its path under Local REST API:

curl --unix-socket "$GARNET_SOCKET" -H "Authorization: Bearer $GARNET_TOKEN" "http://localhost/v1/search?query=garden"

For tools that cannot use a socket, turn on Local REST API to answer on a port as well:

curl -H "Authorization: Bearer $GARNET_TOKEN" "http://127.0.0.1:47321/v1/search?query=garden"
RequestWhat it does
GET /v1/statusSays whether Garnet answers.
GET /v1/itemsLists granted items.
GET /v1/search?query=…Searches granted items.
GET /v1/items/<id>Reads one granted item.
POST /v1/notebook with {"markdown": "…"}Appends to the connection's notebook.
  • The port listens only on 127.0.0.1, so other computers cannot reach it, and every request needs an access token. The token also picks the connection.
  • Other accounts on this computer can reach the port, and while Garnet is closed they can listen on it and see the token a script sends. If other people sign in to this computer, use the private socket and leave the port off.
  • Web pages are always refused, so a website you visit cannot read your notes through it.
  • The port is 47321 unless you change it. If another program uses that port, Settings says so; choose another one.

Check and end a connection

  • What Garnet gave this connection on each card lists the time, the tool and how many items Garnet gave, for up to the last 30 days. It never shows your queries or text. It records what Garnet gave, not what your client sent on to its provider.
  • Disconnect stops a connection on its next call.
  • Remove deletes the connection and its activity. Its notebook stays in your Space until you delete it.

Troubleshooting

  • "Open or unlock Garnet, then open the Space this connection belongs to." Open Garnet, unlock it if App Lock is on, and open the Space the connection was created in.
  • "This connection is not active." The connection was disconnected, has ended, or was removed. Create a new one in Settings › AI connections and update your client's setup.
  • "This connection needs one of its access tokens." The connection has had a token, and the call carried none, or one that was deleted or has ended. Create a token and give it to your client as GARNET_TOKEN.
  • "No item with that ID." The item is missing, or it is not granted. Garnet answers both the same way.
  • The client does not list Garnet's tools. Check that the path in its setup is the full path and that garnet status --connection conn_… works in a terminal, then restart the client.
  • Settings says your connections were reset. Their file was changed outside Garnet, so Garnet stopped trusting it. Create your connections again.
  • On Windows, garnet commands print nothing in a terminal. Running Garnet's command line tool in a Windows terminal is not supported yet. Connect through an MCP client with the setup from Settings instead.
  • Settings says connections need your system's secret store. Garnet protects your connections with the operating system's secret store, and this computer does not offer one to Garnet.

Still need help?

Contact support@garnet.md or visit r/GarnetMD.

Still need help?

Email support for private account or Space questions. Use Reddit only for public community discussion.

Contact support