AgentPantheon
Astrolabe logo

Astrolabe适用于 OpenClaw 代理的自托管、兼容 OpenAI 的路由网关,具备成本和安全策略

4.4 (5)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年6月

概览

Astrolabe 是一个开源 AI 网关,旨在位于 OpenClaw 代理与 OpenRouter 之间。它充当路由代理,能够对每个请求进行分类,从静态已签入的名册中解析出合适的模型通道,向 OpenRouter 发起调用,并对工具使用和不可信输入应用安全策略。其目标是让自托管代理无需在每一次交互中手动调优提供商和模型 ID。 该项目公开了一组虚拟模型,例如 astrolabe/auto、astrolabe/coding、astrolabe/research、astrolabe/vision、astrolabe/strict-json、astrolabe/cheap 和 astrolabe/safe。这些虚拟模型对应于来自 DeepSeek、OpenAI、Anthropic、MiniMax、Moonshot、xAI、Qwen、Google 和 Mistral 等供应商的具体基础模型,这些模型以静态清单的形式维护,而非硬编码的配置对象。 Astrolabe 为 OpenClaw 代理集中处理四大核心问题:路由灵活性、可靠性与回退行为、成本控制以及工具使用的安全策略。它旨在在不增加数据库、托管控制平面或任何 SaaS 依赖的前提下提供这些功能。OSS 版本为无状态且自托管;运营者需提供自己的 OpenRouter API key 和 Astrolabe API key,然后将 OpenClaw 指向 Astrolabe 实例。 在运行时,OpenClaw 会向 Astrolabe 的 POST /v1/responses 接口发送请求(同时保留 POST /v1/chat/completions 作为兼容适配器)。Astrolabe 会对类别、复杂度和修饰符进行分类,确定 lane 和候选模型集,执行请求,验证非流式响应,执行工具策略检查,并可能一次提升到更强的模型。它会返回上游响应以及 x-astrolabe-* 头信息和内联元数据。 截至 0.3.0 Beta 版本,项目仍处于早期阶段且规模较小。它专为 OpenClaw 生态系统定制,而非通用 LLM 网关,因此在该工作流程之外的用户可能会在 LiteLLM 或 OpenRouter 自己的路由工具中找到更成熟的替代方案。其静态、已检入的模型清单提供可复现性,但随着模型的变化需要手动更新。

主要功能

  • 兼容 OpenAI 的 /v1/responses 和 /v1/chat/completions 端点
  • 跨多家提供商的静态检查模型清单
  • 虚拟模型通道(auto、coding、research、vision、cheap、safe、strict-json)
  • 按类别、复杂度和修饰符进行请求分类
  • 具有单次升级的工具使用安全策略检查
  • 响应验证和 x-astrolabe-* 元数据头

价格

模型
Free
评分
4.4 / 5 (5)

使用场景

成本优化的 LLM 路由

自动将兼容 OpenAI 的请求路由到满足策略的最低成本模型,在无需更改客户端代码的情况下减少推理支出。

安全门控 AI 网关

在模型调用前应用策略驱动的安全门控,确保提示和响应在到达下游应用程序之前经过检查。

单次升级备用

当最便宜的模型表现不佳时,单次升级到更强大的模型,以在可靠性与成本控制之间取得平衡。

OpenClaw 集成层

作为 OpenClaw 部署的路由代理,集中模型选择和策略执行,涵盖多个服务。

优点 & 缺点

优点

  • 自托管且无状态,无需数据库或 SaaS 依赖
  • 虚拟模型通道抽象出提供商和模型 ID 选择
  • 内置工具使用和不受信任输入的安全策略
  • 具有单次升级的成本感知路由和备用行为
  • 兼容 OpenAI 的端点简化集成

缺点

  • 仍处于早期测试阶段(0.3.0),用户基础非常小
  • 紧密聚焦于 OpenClaw 生态系统,而非通用
  • 静态模型列表必须在模型变化时手动维护
  • 需要用户提供和管理自己的 OpenRouter API 密钥

评测

4.4

5 个评分的平均值。

5
2
4
3
3
0
2
0
1
0

登录以留下评测。

R

Rina Desai

May 16, 2026

Years in this space

I've evaluated a lot of these over the years. What stands out here is the core workflow — handled better than most — and it is genuinely easy to set up. Worth the time if this is your use case.

C

Carlos Mendoza

Mar 25, 2026

Compared a few options

Evaluated this against two competitors. Where it wins: the core workflow and it is genuinely easy to set up. Where it lags: the docs could be deeper. On balance the feature set — especially the dashboard — justifies the 4 stars for our use case.

A

Ahmed Saleh

Jan 26, 2026

Does the job

Pretty happy overall. The onboarding just works and it saves real time. A few rough edges remain can be annoying, but no dealbreakers — I'd recommend it to a friend without hesitating.

E

Elena Rossi

Sep 6, 2025

Use it every day

Honestly didn't expect to like it this much. The automation is exactly what I needed, and it saves real time. I do wish a few rough edges remain, but I reach for it almost every day now and it just clicks.

J

Joanna Kowalski

Jun 18, 2025

Does the job

Pretty happy overall. The integrations just works and it saves real time. The docs could be deeper can be annoying, but no dealbreakers — I'd recommend it to a friend without hesitating.

问答

How does Astrolabe choose which model to use for a request?

Astrolabe uses policy-driven routing to automatically select the lowest-cost model that meets your requirements. It also includes safety gates and can escalate to a more capable model once if the initial response doesn't meet criteria.

Is Astrolabe compatible with existing OpenAI client libraries?

Yes. Astrolabe is an OpenAI-compatible proxy, so applications built against the OpenAI API format can route through it with minimal changes. It's designed specifically for use with OpenClaw.

What safety controls does Astrolabe provide?

Astrolabe adds safety gates into the routing pipeline, allowing policies to govern requests and responses. Combined with single-step escalation, this helps balance cost, quality, and safety on each call.

提问

AI Model Serving Platforms 的替代品