Integrations
Connect external accounts and choose which plugins can use them.
An integration connects Spiti to an external service. Install the integration before the plugin that needs it. Spiti keeps the credentials it manages in the Mac's Keychain. CLI integrations use the CLI's local sign-in. Plugins use the connection through the hub.
Install an integration
Open Integrations in the Spiti.app sidebar. Installed integrations come first, then the rest by kind. Search or filter the catalog, choose Install, and review the package source and permissions. Click any card to open its page before you install it: how you connect an account, which plugins in your workspace use it, the permissions it asks for, and its version and source. Once it's installed, its page is where you connect accounts with Connect account, turn CLI and agent access on or off, and disconnect, reconnect or remove an account. Each card shows the name, icon and kind the package gives itself. A third-party package shows its GitHub owner and name with its kind's icon, so it can't pass for an official one. If you already have a local copy, choose Install from folder… and select the folder that contains spiti.json. To install one from GitHub, choose Install from GitHub…; see Install from GitHub.
After installing, choose Manage, then Connect account. An integration can support more than one account. When you install a plugin, Spiti shows its integration slots and lets you choose which connected accounts it can use. Change them later on the plugin's page in Plugins.
From the CLI, run spiti install <path> for a local package or spiti install github:owner/repository for a GitHub package.
Update an integration
When the workspace's integrations folder holds a newer version of an installed integration, its card shows Update and its page shows both versions under About. Choose Update, or run spiti install <path> with the newer folder, and review it again; permissions it didn't have are marked New. Its accounts, the plugins using them, and its database stay. An update that changes how the integration signs in, or drops its database, is refused for now, as is the same or an older version.
Choose an integration database
An integration that stores data shows a Database section during installation. Keep A new SQLite database to give it a dedicated file, or choose a named connection from Settings → Databases. Integrations sharing a connection keep their own tables. Review any requests to read another package’s tables before approving.
This choice applies to the integration’s own data, such as cached records or sync cursors. Connect a MySQL or Postgres account from its page under Integrations to use its remote read tools. The storage picker currently lists SQLite connections.
Connect Google
Install the Google integration and open its page under Integrations in Spiti.app. If you use a Google Cloud project of your own, enter a Desktop OAuth client in Google OAuth client. Click Connect account, choose what the integration can do in your Google account, then finish connecting in your system browser on the Mac running the hub. Spiti asks Google only for what you leave checked, and a tool that needs something you unchecked isn't available for that account.
- Calendar can discover calendars and read or change events the connected account can access.
- Gmail can check unread counts for selected labels and send email.
- Drive can work with files created for the app.
Install the Calendar plugin and select the connected accounts to show. Each event belongs to one account and calendar. Calendar keeps those separate when you create or change an event.
You can install Google Calendar, Gmail, or Google Drive separately if you only need one service. Google Calendar and the combined Google package both provide the calendar@1 slot.
Connect other services
| Connector | What to connect | Example tool |
|---|---|---|
| Notion | Authorize a workspace in your browser | Discover tools from your workspace |
| GitHub | Sign into gh on the Mac | viewRepository |
| Vercel | Enter a Vercel access token | listProjects |
| Convex | Enter a Convex access token | listDeployments |
| SharpOS | Use the active local SharpOS profile | readPage |
| Relay | Use the local Relay connection | getProject |
| MySQL, Postgres | Enter the connection URI of a read-only database user | listTables and readRows |
| Claude Code, Codex, Grok, Gemini, OpenCode | Sign into the installed client on the Mac | generateText |
Model tools use the local client's account. Requests count toward that account's usage. OpenCode uses the provider and model configured in OpenCode.
Each integration's Connect account dialog asks for what its service needs:
- A token or API key. Paste it from the service's settings.
- A user name and a password or API token. Some services also ask for your own site, such as
https://your-team.example.com. Enter only the address of the site, withhttps://. - Browser sign-in. Choose what the integration can do, then sign in on the service's page in your browser on the Mac running the hub.
- Sign-in with a code. The dialog shows a code and opens the service's page. Enter the code there, from any device, and keep the dialog open until it connects.
Connect NPM Package
Install NPM Package and open its account settings on the hub Mac. Run the displayed npm login command in Spiti's Terminal or your system terminal, finish signing in on npmjs.com, then choose Connect signed-in CLI. Spiti verifies the session with npm whoami. npm stores the sign-in in its local configuration.
listPackages lists packages accessible to your npm account. Pass owner to list packages for an organization and use nextOffset to request the next page. Each row includes its latest version and your access level. getPackageVersion looks up the latest version of a named package.
Run npm pack in your built package directory. Pass the resulting tarball's absolute path as tarballPath to publishPackage. The tool defaults to a dry run. Set dryRun to false to publish and pass tag or access when you want to set them explicitly. For a real publish, npm needs credentials that satisfy the package's publishing policy without an interactive prompt. If npm requires browser-based two-factor authentication for the publish, run npm publish in Terminal.
Use an integration from the CLI
Enable CLI and agent access for the account on the integration's page in Spiti.app. spiti integrations list prints the installed integrations and their connection IDs. To list calendars when two accounts are connected, choose the target with --account.
spiti google listCalendars --account <connection-id>Disconnect or reconnect
Disconnect a connection in Settings to stop new calls. Reconnect a Google, browser or code sign-in, credentials or CLI connection to resume its existing plugin bindings. For an MCP OAuth connection, remove the disconnected account, connect again, and choose the new connection in each plugin's settings. Google test projects may require you to reconnect after their test credentials expire.
Build a plugin that uses an integration
Declare the slot in requires.integrations in spiti.json, with the tools your plugin calls. Only accounts whose integration has every one of them can fill the slot. Name an integration by its published owner/id; on a development Spiti, the same package installed from a folder fills the slot too.
With the matching integrations installed, run spiti plugin check to generate spiti-integrations.generated.ts. No account needs to be connected, so the check also runs in CI against a throwaway Spiti. It keeps the tools every matching integration describes the same way, and fails if they disagree on one your slot lists. Use the generated withIntegrations(ctx) helper in a query or action to call a tool with a connection ID and typed input. Keep the generated file with the plugin source so the plugin can build offline.
To create the connector itself, start with the demo repository and work through the standalone package and test workflow. Build an integration