Connect an application to OpenPO
Use a scoped workspace key to read budgets, request purchases or submit receipts through MCP. The core ledger records the resulting budget movements.
Connect over HTTP
In an MCP client with Streamable HTTP support, set the server URL to https://api.openpo.dev/v1/mcp. Set the Authorization header to Bearer followed by a scoped agent key from your workspace. Store the key in the client’s secret settings. The workspace administrator controls the agent’s scopes and spending policy.
Build the local stdio bridge
For a client that starts MCP servers as local processes, use Git, Node.js 22 or later, and pnpm 9.15.0. From a directory where you want to keep the repository, run the following commands.
git clone https://github.com/subtract0/openpo.git
cd openpo
pnpm install --frozen-lockfile
pnpm --filter @openpo/mcp build
node packages/mcp-cli/dist/index.js --versionThe last command prints @openpo/mcp 2.0.0. Set your client’s command to node and pass the absolute path to packages/mcp-cli/dist/index.js as its only argument. Set OPENPO_API_KEY through your client’s secret settings. For a self-hosted server, also set OPENPO_MCP_URL to its full MCP URL.
Verify a spend lease or integrate a supplier portal
The Node SDK exposes verifyOpenPoSpendLease for signature and expiry checks and fetchSupplierPo for reading an order. Verify against the buyer’s trusted public key. An offline verifier cannot determine whether a lease has already been consumed.
pnpm --filter @openpo/sdk build
node --input-type=module -e "import { SDK_PROTOCOL } from './packages/sdk/dist/index.js'; console.log(SDK_PROTOCOL)"The SDK check prints openpo-v2. The SDK and bridge carry the MIT license. The ledger, web app and API carry the AGPLv3 license. Browse the source and licenses.