Calcium-Ion / AstrLink
git clone https://github.com/Calcium-Ion/AstrLink.git
v0.2.13 · today
A local AI gateway for AI agents, unifying your subscriptions and API providers with smart routing and on-device privacy protection.
—
stars, 24h
—
stars, 7 days
+307
stars, 30 days · #855
307
★ total
40
forks · 19 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageGo
LicenseApache-2.0
Created2026-09-22 (28d ago)
Last pushtoday
Watchers2
OwnerUser
GitHub topics
Links
- GitHub: github.com/Calcium-Ion/AstrLink
- Homepage: https://astrlink.com
- Releases · Issues · Hacker News mentions
README excerpt
# AstrLink **English** | 简体中文 | 日本語 **A local privacy gateway for AI agents: sensitive content is detected and redacted locally before it reaches any model provider.** AstrLink is an open-source desktop app for macOS, Windows, and Linux. Before a request goes upstream, it can detect secrets, email addresses, phone numbers, and other sensitive content locally, then warn, block, or redact it according to configured policies. Redacted values can be restored locally in the response, so agents keep working. It also unifies existing subscriptions and APIs, with model routing and request records. Getting started · On-device privacy protection · User guides (Chinese) · Contributing (Chinese) ## Screenshots Simulated accounts, usage, costs, and request content. Click an image to view it at full size. | Overview | API providers | | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | | | | **On-device privacy protection** | **Request details** | | | | ## Features - **On-device privacy protection**: Detect sensitive content with local rules or a local privacy model. Warn, block, or redact according to your policies, and optionally restore placeholders in responses. - **Subscriptions and APIs in one place**: Connect Codex, Claude, and Grok subscriptions, major API providers, Coding Plans, and compatible gateways such as New API. Manage accounts and credentials centrally. - **Model routing**: Redirect requested model names to target models, set provider priorities, and configure retries and failover between providers. - **Multiple API protocols**: Expose OpenAI Responses, Chat Completions, Anthropic Messages, and Gemini endpoints, with protocol conversion configurable according to upstream capabilities. - **Request records and usage tracking**: Inspect requests, session traces, upstream attempts, and errors. Track usage and estimated costs by provider, model, and access token. ## On-device privacy protection With privacy policies enabled, AstrLink can detect sensitive content, redact requests, and restore responses locally: 1. **Detect on your device**: Use built-in rules, custom rules, or a local privacy model to identify sensitive content such as secrets, email addresses, and phone numbers. Rule-based detection requires no model download. 2. **Apply your policies**: Choose to warn, block, or redact. Redaction replaces detected sensitive content with placeholders. Configure detection categories and allowlists, then check the results with a dry run. 3. **Restore responses when needed**: Enable response restoration to replace placeholders returned by the model with their original values, so your agent can continue using the results. The gateway, privacy detection, and redaction run on your device. Inference requests