Token导航 LogoToken导航

Agent Skill · 研究检索

aegra(aegra 搜索)

aegra 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

aegra 是研究检索类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 44,713。

总安装 897周安装 37下载 293核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aegra(aegra 搜索)
来源仓库:https://docs.aegra.dev
仓库路径:aegra
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Aegra 是一个开源的自托管 Agent Protocol 服务器,专为在自有基础设施上运行 LangGraph 代理而设计。适合部署本地代理服务、管理多助手实例或构建私有化智能体系统,支持 PostgreSQL 持久化。

提供与 LangSmith Deployments 兼容的 SDK 和流式接口,内置人工审核关卡与语义检索能力。可通过 Docker 或 Kubernetes 部署,配置灵活,支持 JWT/OAuth 等多种认证方式。首次使用需初始化配置文件并启动服务,确保环境变量正确设置及端口无冲突。

来源仓库内路径:aegra

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 aegra。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

aegra 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 aegra。

aegra 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

aegra 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

aegra 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

aegra 用的人多吗?

公开数据是累计安装 897 次,近一周安装 37 次,下载 293 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

aegra 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
aegra

aegra 搜索 · 本页

897—接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Aegra Skill

Product summary

Aegra is an open-source, self-hosted Agent Protocol server for running LangGraph agents on your own infrastructure. It provides a drop-in replacement for LangSmith Deployments with the same SDK, full persistence via PostgreSQL, streaming via SSE, human-in-the-loop approval gates, semantic storage with pgvector, and flexible authentication (JWT, OAuth, Firebase, or custom). Key files: aegra.json (configuration), .env (environment variables), Dockerfile and docker-compose.yml (deployment). CLI commands: aegra init, aegra dev, aegra up, aegra serve. Primary docs: https://docs.aegra.dev

When to use

Reach for this skill when:

  • Deploying agents — Setting up a production Aegra server locally, on Docker, PaaS (Railway, Render), or Kubernetes
  • Managing assistants — Creating, versioning, searching, or updating configured graph instances
  • Building conversations — Creating threads, managing state, accessing checkpoint history, searching by metadata
  • Streaming responses — Configuring stream modes, handling SSE reconnection, implementing background runs
  • Adding authentication — Implementing JWT, OAuth, Firebase, or custom auth handlers with authorization rules
  • Human-in-the-loop — Adding approval gates, tool review, or user intervention points in agent execution
  • Persistent storage — Using key-value or semantic (vector) storage for conversation memory, knowledge bases, or user preferences
  • Observability — Configuring tracing to Langfuse, Phoenix, or generic OTLP backends
  • Custom routes — Adding FastAPI endpoints alongside the Agent Protocol API

Quick reference

CLI commands

CommandUse caseStarts DB?Starts app?
aegra initCreate new project——
aegra devLocal developmentYes (Docker)Yes (host, hot reload)
aegra upSelf-hosted Docker productionYes (Docker)Yes (Docker)
aegra servePaaS, containers, bare metalNoYes (host)
aegra downStop Docker services——

Configuration files

FilePurpose
aegra.jsonDefine graphs, auth, HTTP routes, semantic store
.envDatabase, Redis, LLM keys, logging, observability
DockerfileContainer image for deployment
docker-compose.ymlPostgreSQL + app (dev/prod) or PostgreSQL + Redis + app (prod)

Core API patterns

# Initialize client
from langgraph_sdk import get_client
client = get_client(url="http://localhost:2026")

# Assistants (configured graph instances)
assistant = await client.assistants.create(graph_id="agent", name="My Agent")
assistants = await client.assistants.search(graph_id="agent")
await client.assistants.update(assistant_id, name="Updated")

# Threads (conversations with persistent state)
thread = await client.threads.create(metadata={"user": "alice"})
state = await client.threads.get_state(thread_id)
await client.threads.update_state(thread_id, values={...})

# Runs (agent executions)
async for chunk in client.runs.stream(thread_id, assistant_id, input={...}):
    print(chunk)
run = await client.runs.create(thread_id, assistant_id, input={...})
await client.runs.cancel(thread_id, run_id)

# Store (key-value + semantic)
await client.store.put_item(namespace=["users", "alice"], key="prefs", value={...})
items = await client.store.search_items(namespace_prefix=["users"], query="...", limit=10)

Environment variables (key ones)

VariableDefaultPurpose
DATABASE_URL—PostgreSQL connection (takes precedence over POSTGRES_*)
POSTGRES_HOST, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_PORT, POSTGRES_DBlocalhost, user, password, 5432, aegraIndividual DB config
REDIS_BROKER_ENABLEDfalseEnable Redis for multi-instance SSE and worker job queue
REDIS_URLredis://localhost:6379/0Redis connection
OPENAI_API_KEY—LLM provider key
AUTH_TYPEnoopnoop (no auth) or custom
OTEL_TARGETS—Observability: LANGFUSE, PHOENIX, GENERIC
WORKER_COUNT3Number of worker loops per instance
N_JOBS_PER_WORKER10Max concurrent runs per worker

Decision guidance

When to use each deployment command

ScenarioCommandWhy
Local development with hot reloadaegra devStarts PostgreSQL in Docker, runs app on host with auto-reload
Self-hosted production (your infrastructure)aegra upStarts PostgreSQL + Redis + app in Docker with health checks and auto-restart
PaaS platform (Railway, Render, Fly.io)aegra serveNo Docker orchestration; you provide managed PostgreSQL and Redis
Kubernetesaegra serve in pod specUse managed PostgreSQL (CloudSQL, RDS) and Redis (ElastiCache)
Single-instance PaaS without Redisaegra serve with REDIS_BROKER_ENABLED=falseRuns execute as in-process asyncio tasks; suitable for single instance

When to use stream modes

ModeUse case
valuesFull state snapshot after each node (good for UI state updates)
updatesOnly state deltas (efficient for large state objects)
messagesLLM tokens and tool calls with accumulation (best for chat UI)
messages-tupleRaw message tuples without accumulation (JavaScript compatibility)
customUser-defined data from get_stream_writer() in nodes
eventsLow-level LangGraph events for fine-grained tracing

When to use static vs factory graphs

NeedUsePattern
Simple graph, same for all usersStatic graphgraph = builder.compile() in aegra.json
Customize graph per user (tools, models)Factory graphdef graph(runtime: ServerRuntime):... returns compiled graph
Manage resources (MCP, DB connections)Factory with async context manager@asynccontextmanager async def graph(runtime):...
Access user context in nodesRuntime[T] parameterAdd runtime: Runtime[MyContext] to node function

Workflow

1. Create and run a new Aegra project

  1. Initialize project: aegra init → choose template (simple-chatbot or react-agent) and location
  2. Configure environment: cp.env.example.env → add OPENAI_API_KEY and other secrets
  3. Install dependencies: uv sync (uses uv for dependency management)
  4. Start dev server: uv run aegra dev → PostgreSQL starts in Docker, app runs on host with hot reload
  5. Verify: Visit http://localhost:2026/docs to see API docs
  6. Test: Use LangGraph SDK client to create threads and run agents

2. Deploy to production with Docker

  1. Ensure aegra.json is configured with all graphs, auth, and routes
  2. Set environment variables in .env (DATABASE_URL, OPENAI_API_KEY, AUTH_TYPE, etc.)
  3. Build and start: aegra up → generates docker-compose.yml if needed, builds image, starts PostgreSQL + Redis + app
  4. Verify health: Check GET /health, GET /ready, GET /live endpoints
  5. Monitor: Logs from docker compose logs -f show migrations, startup, and runtime errors

3. Add authentication

  1. Create auth handler (e.g., my_auth.py): from langgraph_sdk import Auth auth = Auth() @auth.authenticate async def authenticate(headers: dict) -> dict: token = headers.get("Authorization", "").replace("Bearer ", "") # Verify token (JWT, OAuth, Firebase, etc.) return {"identity": "user123", "permissions": ["read", "write"]}
  2. Add to aegra.json: "auth": {"path": "./my_auth.py:auth"}
  3. Restart server: aegra dev or aegra up
  4. Access user in graph: config["configurable"]["langgraph_auth_user"] in nodes or tools

4. Implement human-in-the-loop approval

  1. Add interrupt node to graph that calls interrupt() with action details
  2. Route through approval in conditional edges before tool execution
  3. Client checks thread status: await client.threads.get_state(thread_id) → check interrupts field
  4. Resume with command: await client.runs.stream(..., command={"resume": [{"type": "accept", "args": None}]})
  5. Alternatively use interrupt_before/after: Pass interrupt_before=["tools"] to run without modifying graph code

5. Configure semantic storage

  1. Add store section to aegra.json: {"store": {"index": {"dims": 1536, "embed": "openai:text-embedding-3-small", "fields": ["$"]}}}
  2. Store items: await client.store.put_item(namespace=[...], key="...", value={...})
  3. Search semantically: await client.store.search_items(namespace_prefix=[...], query="...", limit=10)
  4. In graph nodes: Use store: BaseStore parameter (auto-injected by LangGraph)

Common gotchas

  • Install aegra-cli, not aegra — The aegra package on PyPI is a convenience wrapper without version pinning. Always pip install aegra-cli.
  • DATABASE_URL takes precedence — If both DATABASE_URL and individual POSTGRES_* variables are set, DATABASE_URL wins and POSTGRES_* are ignored.
  • Migrations run automatically — Don't run them manually. They apply on startup for all deployment methods.
  • Redis is optional in dev, required in production — aegra dev works without Redis (REDIS_BROKER_ENABLED=false). For multi-instance production, set REDIS_BROKER_ENABLED=true and provide a Redis URL.
  • Stream mode debug is always enabled internally — You only receive debug events if you explicitly request them in stream_mode. Otherwise, only interrupt events are forwarded.
  • Interrupts use command, not input — When resuming an interrupted run, pass command={"resume": [...]}, not input. These are mutually exclusive.
  • Store values must be JSON objects — Primitive values (strings, numbers) are rejected. Wrap them: {"value": "text"}.
  • User isolation is automatic with auth — Threads and store items are scoped to the authenticated user. No manual filtering needed.
  • Factory graphs get user context at build time — ServerRuntime.user is available when the factory is called (for structural decisions). Execution-time user data goes in config["configurable"]["langgraph_auth_user"].
  • Windows doesn't support aegra serve — Use aegra dev or aegra up (Docker) on Windows. aegra serve requires Linux/macOS because psycopg needs SelectorEventLoop.
  • Health checks are critical in Docker — Generated docker-compose.yml includes health checks. If the app hangs, Docker marks it unhealthy and restarts it (with restart: unless-stopped).
  • CORS defaults to allow all origins — Default is allow_origins: ["*"] with allow_credentials: false. When you specify concrete origins, allow_credentials defaults to true automatically.

Verification checklist

Before submitting work with Aegra:

  • Configuration: aegra.json is valid JSON and all graph import paths exist
  • Environment: .env has all required keys (DATABASE_URL or POSTGRES_*, OPENAI_API_KEY, etc.)
  • Database: Can connect to PostgreSQL; migrations have run (check logs for "Alembic" messages)
  • Graphs: All graphs in aegra.json load without import errors (check startup logs)
  • Auth: If auth is configured, test with valid and invalid tokens; verify user data is accessible in nodes
  • Assistants: Default assistants created for each graph (one per graph ID in aegra.json)
  • Threads: Can create threads, retrieve state, update state without errors
  • Runs: Can stream runs, receive events, handle interrupts (if HITL is implemented)
  • Store: Can put/get/search items; semantic search works if configured
  • Streaming: Multiple stream modes work; SSE reconnection works (if Redis is enabled)
  • Health endpoints: /health, /ready, /live return 200 OK
  • Deployment: Docker image builds; containers start and stay healthy; migrations apply on startup
  • Observability: Traces are exported to configured backend (Langfuse, Phoenix, etc.) if enabled

Resources


For additional documentation and navigation, see: https://docs.aegra.dev/llms.txt

平台分布

Local Agent

75.51%
按下载量换算221

安全审计

Socket

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills