
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@sidclaw/sdk
Advanced tools
Governance for AI agents. Identity, policy, approval, and audit.
Documentation · Quick Start · Examples
npm install @sidclaw/sdk
import { AgentIdentityClient } from '@sidclaw/sdk';
const client = new AgentIdentityClient({
apiKey: process.env.AGENT_IDENTITY_API_KEY,
apiUrl: 'https://api.sidclaw.com',
agentId: 'your-agent-id',
});
import { withGovernance } from '@sidclaw/sdk';
const sendEmail = withGovernance(client, {
operation: 'send_email',
target_integration: 'email_service',
resource_scope: 'customer_emails',
data_classification: 'confidential',
}, async (to, subject, body) => {
// your actual send logic
});
await sendEmail('customer@example.com', 'Follow-up', '...');
// If policy says "approval_required", this waits for a human to approve
// If policy says "deny", this throws ActionDeniedError
// If policy says "allow", this executes immediately
Wrap any MCP server with governance — intercepts tool calls automatically.
import { AgentIdentityClient, GovernanceMCPServer } from '@sidclaw/sdk';
const server = new GovernanceMCPServer({
client,
upstream: { transport: 'stdio', command: 'npx', args: ['your-mcp-server'] },
toolMappings: [
{ toolName: 'query', data_classification: 'confidential' },
{ toolName: 'list_tables', skip_governance: true },
],
});
await server.start();
import { governTools } from '@sidclaw/sdk/langchain';
const governedTools = governTools(myTools, { client });
import { governVercelTool } from '@sidclaw/sdk/vercel-ai';
const governedTool = governVercelTool('myTool', myTool, { client });
import { governOpenAITool } from '@sidclaw/sdk/openai-agents';
const governedTool = governOpenAITool(myTool, { client });
import { verifyWebhookSignature } from '@sidclaw/sdk/webhooks';
const isValid = verifyWebhookSignature(rawBody, signatureHeader, webhookSecret);
Add governance to any OpenClaw MCP server:
openclaw skills install sidclaw-governanceopenclaw.json:{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["-y", "@sidclaw/sdk", "mcp-proxy"],
"env": {
"SIDCLAW_API_KEY": "ai_...",
"SIDCLAW_AGENT_ID": "agent-...",
"SIDCLAW_UPSTREAM_CMD": "npx",
"SIDCLAW_UPSTREAM_ARGS": "-y,@modelcontextprotocol/server-postgres,postgresql://..."
}
}
}
}
Every tool call is now evaluated against your SidClaw policies.
import { ActionDeniedError, ApprovalTimeoutError } from '@sidclaw/sdk';
try {
await governedAction();
} catch (error) {
if (error instanceof ActionDeniedError) {
console.log('Denied:', error.reason, 'Trace:', error.traceId);
}
}
Apache 2.0
FAQs
Governance SDK for AI agents — identity, policy, approval, and audit
The npm package @sidclaw/sdk receives a total of 117 weekly downloads. As such, @sidclaw/sdk popularity was classified as not popular.
We found that @sidclaw/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.