
IdentArk Gateway
io.identarkPublished by identark.ioOfficial publisherv0.1.0Updated Nov 2, 2026
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Overview
Remote IdentArk gateway that lets an assistant run LLM calls and governed actions such as payments through a risk-scored, audited control plane.
- What you can do
- Route LLM inference through the IdentArk control plane, with cost tracking per call and per session
- Request governed actions such as payment links, payments and refunds, with grants, budgets and human approval before execution
- Keep provider credentials (Stripe, Paystack, GitHub, AWS) in IdentArk rather than in the agent
- Persist conversation history in the control plane so sessions survive restarts
- Poll the status of a capability request, including pending-approval outcomes
- When to use it
- Use it when an agent must call LLMs or trigger money-moving or privileged actions without holding provider secrets, and you want approvals, budgets and an audit trail in front of those actions.
- Requirements
- A remote endpoint at api.identark.io over streamable HTTP. Authentication is a required bearer token sent in the Authorization header: an IdentArk API key starting with iak_. No environment variables or local packages are declared.
Installation
In SourceWeft
- Open IdentArk Gateway in the dashboard and add it to a workspace.
- Connect Authorization token credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.identark%2Fgateway/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"identark-gateway": {
"type": "http",
"url": "https://api.identark.io/v1/mcp/rpc",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
identark
The AgentGateway Protocol — secure, scalable AI agent execution infrastructure.
[CI] [PyPI] [Python] [License: MIT]
The problem
When an AI agent can execute code, call APIs, or access files, it runs in a process. That process has an environment. That environment typically contains everything that can cause serious damage: LLM API keys, database credentials, AWS tokens.
The naive solution — run your agent on the same backend as your REST API — creates two problems at once:
- Security: The agent can access every secret on the machine.
- Reliability: A memory-hungry agent degrades your API. Redeploying your API kills all running agents.
identark solves both.
How it works
The SDK implements the AgentGateway Protocol — a clean interface between your agent logic and the outside world. Two implementations ship out of the box:
Your agent code is identical in both environments. The switch is two lines.
Quick start
Moving to production
Change two lines. Your agent logic is untouched.
Governed actions (payments, payment links, refunds)
The agent asks the control plane to act; the provider key (Stripe, Paystack, GitHub or AWS) stays in IdentArk. Grants, budgets and human approval apply before anything executes, and a reused idempotency key never acts twice.
Installation
Requirements: Python 3.10+
Using TypeScript? The parity SDK ships as the zero-runtime-dependency
identark npm package, with the same
AgentGateway contract and structured credential sessions.
Data Sovereignty
IdentArk is designed from the ground up to work with any LLM provider, including those that keep your data inside the UK or EU. The AgentGateway Protocol decouples your agent logic from the inference provider — switching providers requires changing one line.
Run fully local with Ollama (zero data egress)
Install Ollama: brew install ollama && ollama pull llama3.2 && ollama serve
Use Mistral AI (EU data residency)
Mistral AI is a French company. All inference runs in EU data centres, subject to EU data protection law (GDPR). Use this when UK/EU data governance requirements prohibit sending inference traffic to US-based cloud providers.
See examples/ for complete runnable scripts.
The AgentGateway Protocol
Any class implementing these four async methods is a valid gateway:
Write your agent against the protocol. The implementation — local or production — is a runtime detail.
Features
- Zero-secret agents —
ControlPlaneGatewayholds no API keys, database credentials, or cloud tokens - Stateless by design — conversation history owned by the gateway, not the agent; kill and restart without data loss
- Framework-agnostic — works with LangChain, LlamaIndex, raw API calls, or any custom agent framework
- Built-in cost tracking — every
invoke_llmcall returnscost_usd;get_session_cost()returns the running total - OpenAI + Anthropic — both providers supported in
DirectGatewayout of the box - MockGateway for testing — no LLM calls in your test suite; full call recording for assertions
- Full type annotations —
py.typedmarker; works with mypy strict mode
Testing your agents
Supported providers
*Via an OpenAI-compatible client/base URL. Use GeminiGateway for native Gemini SDK features.
Error handling
Full exception hierarchy: IdentArkError > GatewayError > ControlPlaneError > AuthenticationError | CostCapExceededError | SessionNotFoundError
Architecture
Community
- Discussions: GitHub Discussions — ask questions, share ideas
- Issues: GitHub Issues — bug reports and feature requests
- Live Demo: identark.io/demo — try IdentArk in your browser
Contributing
Contributions are welcome. Please open an issue before submitting significant changes.
See CONTRIBUTING.md for full guidelines.
Roadmap
- LangChain adapter (
IdentArkChatModel) - LlamaIndex adapter (
IdentArkLLM) - Streaming support (
invoke_llm_stream) - CrewAI integration
- LangGraph integration (
IdentArkNode,IdentArkStreamNode) - Pluggable inference backends (distributed compute)
-
identark-clifor one-command control plane deployment
License
The IdentArk SDK is licensed under the MIT License — free for any use, including commercial and closed-source projects. See LICENSE.
The IdentArk control plane (hosted service) is proprietary. The SDK works with any AgentGateway backend, including fully self-hosted ones.
Built on the control plane pattern described in How We Built Secure, Scalable Agent Sandbox Infrastructure.
Source: README.md at commit c974f1a
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listedRequired15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts