Aegis

io.github.getaegis由 GitHub 帳號 getaegis 發布v1.0.5更新於 Oct 24, 2026

Credential isolation for AI agents. Inject secrets at the network boundary.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本地優先的憑證隔離代理,讓 AI 助理透過 Aegis 呼叫外部 API,由它在網路邊界注入已儲存的密鑰。

可以做什麼
向已設定的服務發出帶驗證的 API 呼叫,由 Aegis 注入儲存的憑證,助理本身看不到密鑰(aegis_proxy_request)。列出可用服務名稱,絕不回傳密鑰內容(aegis_list_services)。查詢 Aegis 的運作狀態與健康狀況(aegis_health)。請求與 HTTP 閘道走同一套流程:網域白名單、代理身分驗證、請求內容檢查、限流與稽核日誌。
適用情境
當助理需要呼叫 Slack、GitHub、Stripe 等服務,但你不希望把原始 API 密鑰寫進 MCP 設定或讓模型看到,並希望對外送請求做網域限制與稽核時使用。
執行需求
以 npm 套件 @getaegis/cli 在本機透過 stdio 執行,需要 Node.js 20 或更新版本。需先執行 aegis init 初始化,並提供密鑰 AEGIS_MASTER_KEY 與 AEGIS_SALT;憑證須先加入 vault。選用設定包括 AEGIS_DATA_DIR、AEGIS_POLICIES_DIR、AEGIS_POLICY_MODE、AEGIS_PORT、AEGIS_REQUIRE_AGENT_AUTH、AEGIS_VAULT、AEGIS_METRICS 及日誌選項。需要連線至目標 API 的網路。
安裝前請注意
保險庫的安全性取決於 AEGIS_MASTER_KEY 與 AEGIS_SALT;遺失可能導致已存憑證無法復原,外洩則所有密鑰曝光。代理會發出真實的外部呼叫,可能在第三方服務中修改或傳送資料,並可能產生費用(例如 Stripe)。代理身分驗證預設關閉(AEGIS_REQUIRE_AGENT_AUTH 為 false),建議開啟並依代理分別授權。稽核日誌與指標可能記錄請求細節。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Aegis,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Aegis

[CI] [npm version] [Docker] [License]

Stop putting API keys where AI agents can read them.

Aegis is a local-first credential isolation proxy for AI agents. It sits between your agent and the APIs it calls — injecting secrets at the network boundary so the agent never sees, stores, or transmits real credentials.

[Aegis demo]

How It Works

[How Aegis works — agent sends request through Gate, credentials injected at the network boundary]

Why?

AI agents (Claude, GPT, Cursor, custom bots) increasingly call real APIs — Slack, GitHub, Stripe, databases. The current pattern is dangerous:

  1. Agents see raw API keys — one prompt injection exfiltrates them
  2. No domain guard — a compromised agent can send your Slack token to evil.com
  3. No audit trail — you can't see what an agent did with your credentials
  4. No access control — every agent can use every credential

Aegis solves all four. Your agent makes HTTP calls through a local proxy. Aegis handles authentication, enforces domain restrictions, and logs everything.

Quick Start

bash
# Installnpm install -g @getaegis/cli
# Initialize (stores master key in OS keychain by default)aegis init
# Add a credentialaegis vault add \  --name slack-bot \  --service slack \  --secret "xoxb-your-token-here" \  --domains slack.com
# Start the proxyaegis gate --no-agent-auth
# Test it — Aegis injects the token, forwards to Slack, logs the request# X-Target-Host tells Gate which upstream server to forward to (optional if credential has one domain)curl http://localhost:3100/slack/api/auth.test \  -H "X-Target-Host: slack.com"

Production Setup (with agent auth)

bash
# Create an agent identityaegis agent add --name "my-agent"# Save the printed token — it's shown once only
# Grant it access to specific credentialsaegis agent grant --agent "my-agent" --credential "slack-bot"
# Start Gate (agent auth is on by default)aegis gate
# Agent must include its tokencurl http://localhost:3100/slack/api/auth.test \  -H "X-Target-Host: slack.com" \  -H "X-Aegis-Agent: aegis_a1b2c3d4..."

MCP Integration

Aegis is a first-class MCP server. Any MCP-compatible AI agent can use it natively — no HTTP calls needed.

Before (plaintext key in config):

json
{  "mcpServers": {    "slack": {      "command": "node",      "args": ["slack-mcp-server"],      "env": { "SLACK_TOKEN": "xoxb-1234-real-token-here" }    }  }}

After (Aegis — no key visible):

json
{  "mcpServers": {    "aegis": {      "command": "npx",      "args": ["-y", "@getaegis/cli", "mcp", "serve"]    }  }}

Generate the config for your AI host:

bash
aegis mcp config claude   # Claude Desktopaegis mcp config cursor   # Cursoraegis mcp config vscode   # VS Codeaegis mcp config cline    # Clineaegis mcp config windsurf # Windsurf

The MCP server exposes three tools:

ToolDescription
aegis_proxy_requestMake an authenticated API call (provide service + path, Aegis injects credentials)
aegis_list_servicesList available services (names only, never secrets)
aegis_healthCheck Aegis status

The MCP server replicates the full Gate security pipeline: domain guard, agent auth, body inspection, rate limiting, audit logging.

Setup Guides

Features

FeatureDescription
Encrypted VaultAES-256-GCM encrypted credential storage with PBKDF2 key derivation
HTTP Proxy (Gate)Transparent credential injection — agent hits localhost:3100/{service}/path
Domain GuardEvery outbound request checked against credential allowlists. No bypass
Audit LedgerEvery request (allowed and blocked) logged with full context
Agent IdentityPer-agent tokens, credential scoping, and rate limits
Policy EngineDeclarative YAML policies — method, path, rate-limit, time-of-day restrictions
Body InspectorOutbound request bodies scanned for credential-like patterns
MCP ServerNative Model Context Protocol for Claude, Cursor, VS Code, Windsurf, Cline
Web DashboardReal-time monitoring UI with WebSocket live feed
Prometheus Metrics/_aegis/metrics endpoint for Grafana dashboards
Webhook AlertsHMAC-signed notifications for blocked requests, expiring credentials
RBACAdmin, operator, viewer roles with 16 granular permissions
Multi-VaultSeparate vaults for dev/staging/prod with isolated encryption keys
Shamir's Secret SharingM-of-N key splitting for team master key management
Cross-Platform Key StorageOS keychain by default (macOS, Windows, Linux) with file fallback
TLS SupportOptional HTTPS on Gate with cert/key configuration
Configuration Fileaegis.config.yaml with env var overrides and CLI flag overrides

Example Integrations

Step-by-step guides with config files and policies included:

  • Slack Bot — Protect your Slack bot token with domain-restricted proxy access
  • GitHub Integration — Secure GitHub PAT with per-agent grants and read-only policies
  • Stripe Backend — Isolate Stripe API keys with body inspection and rate limiting
  • OpenClaw Skill — Aegis skill for OpenClaw personal AI assistant

Security

  • Published STRIDE threat model — 28 threats analysed, 0 critical/high unmitigated findings
  • Full security architecture documentation (trust boundaries, crypto pipeline, data flow)
  • AES-256-GCM + ChaCha20-Poly1305 encryption at rest
  • Domain guard enforced on every request — no bypass
  • Agent tokens stored as SHA-256 hashes — cannot be recovered, only regenerated
  • Request body inspection for credential pattern detection
  • Open source (Apache 2.0) — read the code

How Aegis Compares

.env filesVault/DopplerInfisicalAegis
Agent sees raw keyYesYes (after fetch)Yes (after fetch)No — never
Domain restrictionsNoNoNoYes
MCP-nativeNoNoAddingYes
Local-firstYesNoNoYes
Setup10 sec30+ min15+ min~2 min

See full comparison for detailed breakdowns against each approach.

Documentation

DocumentDescription
Usage GuideFull reference: CLI commands, configuration, RBAC, policies, webhooks, troubleshooting
Security ArchitectureTrust boundaries, crypto pipeline, data flow diagrams
Threat ModelSTRIDE analysis — 28 threats, mitigations, residual risks
ComparisonDetailed comparison with .env, Vault, Doppler, Infisical
FAQCommon questions and objections
RoadmapFeature roadmap
ContributingCode style, PR process, architecture overview

Install

bash
# npmnpm install -g @getaegis/cli
# Homebrewbrew tap getaegis/aegis && brew install aegis
# Dockerdocker run ghcr.io/getaegis/aegis --help

Requires Node.js ≥ 20 — check with node -v

Development

bash
git clone https://github.com/getaegis/aegis.gitcd aegisyarn installyarn buildyarn test

See CONTRIBUTING.md for code style, PR process, and architecture overview.

License

Apache 2.0

來源:README.md,提交 f1321b3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分