
IdentArk Gateway
io.identark由 identark.io 發布官方發布者v0.1.0更新於 Nov 2, 2026
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
概覽
遠端 IdentArk 閘道,讓助理透過具風險評分與稽核的控制平面執行 LLM 呼叫與付款等受控操作。
- 可以做什麼
- 經 IdentArk 控制平面路由 LLM 推論,並依單次呼叫與工作階段統計成本
- 請求付款連結、付款、退款等受控操作,執行前受授權、預算與人工核准約束
- 把 Stripe、Paystack、GitHub、AWS 等供應商金鑰留在 IdentArk,而非放在代理程式中
- 在控制平面保存對話歷史,讓工作階段在重新啟動後仍可延續
- 查詢能力請求的執行狀態,包括等待核准的結果
- 適用情境
- 適用於代理程式需要呼叫 LLM 或觸發涉及金流、權限較高的操作,但本身不應持有供應商金鑰,並希望在操作前加入核准、預算與稽核的情境。
- 執行需求
- 透過 streamable HTTP 連線至 api.identark.io 遠端端點。驗證為必要,使用 Authorization 標頭攜帶 Bearer 權杖,即形如 iak_ 開頭的 IdentArk API 金鑰。未宣告環境變數或本機安裝套件。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 IdentArk Gateway,將其新增到工作區。
- 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.identark%2Fgateway/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"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.
來源:README.md,提交 c974f1a
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分