Skip to content
Osinachi

Sani

Approval broker between AI agents and their credentials

Code
github.com/sianachi/sani
Role
Solo · open source
Tags
  • TypeScript
  • Node.js
  • MCP
  • Docker
  • SQLite
  • OAuth
Stack
  • TypeScript
  • Node.js
  • SQLite
  • Docker
Status
Release candidate
Command
npx github:sianachi/sani

Giving an AI coding agent a GitHub or Linear token means the token lives in its shell, its config files and its context, and every call it makes is one you did not see. Sani is a small self-hosted broker that sits between the agent and the credentials it needs, so the agent never holds a secret.

The agent asks Sani to do something. A person sees the connection, the tool and the exact arguments in a browser and approves that one request. Sani then makes the call with the credential it keeps encrypted on its own server and hands back a screened result. An approval is spent on a single dispatch.

It works two ways, together or separately:

  • MCP tool calls. Connect an authenticated MCP server such as GitHub or Linear and switch on the tools you want. If the platform later changes a tool's definition, Sani switches it off until you review it again.

  • Shell commands. Store a secret such as GH_TOKEN. The agent requests a command and Sani runs it in a throwaway, locked-down Docker container with only the secrets that command named, which covers CLIs and HTTP APIs that have no MCP server.

It works with any client that speaks MCP over HTTP, including Claude Code and Codex, and starts with nothing to configure:

npx github:sianachi/sani

Sani is a release candidate. Start with read-only tools and restricted test credentials.