BeeHears × AstrLink · Open source

Filter secrets. Agents keep working.

Keys, phone numbers, and names are replaced with placeholders on your machine before anything leaves, then restored when replies return.

BeeHears is the relay; AstrLink is an open-source New API ecosystem gateway.

BeeHears does not own AstrLink.

Open source · Apache-2.0 macOS / Windows / Linux Chains with BeeHears
Pipeline

Redact locally,relay upstream

Agents talk to localhost only. Sensitive content stays on-device; inference still uses the provider you choose.

Your machine
Your agent
Claude Code · Codex
AstrLink
Redact out, restore back
BeeHears
Keys · quota · routing
Upstream models
OpenAI · Claude · Gemini
Before / after
AstrLink · Open source

Your agent reads .env.The model needn’t see it.

Raw
What the agent sees
# .env
DB_URL=postgres://admin:q7Vt2LmX9pRk@10.0.3.17/prod
ONCALL=Zhang Wei <[email protected]>
Dry run
What the model receives
# .env
DB_URL=postgres://admin:SECRET@IP/prod
ONCALL=NAME <EMAIL>

Placeholders are restored on-device so the agent keeps working. Fictional example—results depend on your policy.

Why it matters

The more capable the agent,the easier the leak

It reads files on its own

Agents open .env and logs—content you never pasted can still go out.

Every hop sees plaintext

Official APIs, third-party services, and team gateways all see the full request.

Customer data lands in someone else’s logs

Names, phones, and private IPs can linger in provider request records.

Detection

Two detectors,both on-device

Ready out of the box · Built-in rules

Recognize emails, phones, card numbers, and common secret formats immediately.

Local model · AstrLink Guard

Catch names, addresses, accounts, and credentials buried in code or logs.

~35 MB · offline · Chinese & English

You choose what happens on a hit

Policy stays on your machine—pick a response per rule.

Warn & continue Block the request Redact & continue

Placeholders in replies are restored locally. If the privacy model fails to load, requests can be refused.

What else

One desk for your AI stack

AstrLink redacts on-device; BeeHears relays keys, quota, and routing.

BeeHears does not own AstrLink.

Subscriptions & APIs, one localhost

Point agents at one local URL. AstrLink handles redaction; BeeHears unifies upstream quota and keys.

Routing & failover

BeeHears can redirect models, rank providers, and retry when an upstream fails.

Multi-protocol

OpenAI-, Anthropic-, and Gemini-shaped endpoints along the chain—agents keep their usual clients.

Request trail

Review who answered, latency, retries, and estimated cost when something stalls.

Setup

Three steps toBeeHears

BeeHears handles quota; AstrLink handles privacy.

Create a BeeHears token

Issue a dedicated token for AstrLink and limit models or quota as needed.

Add it as a provider

In AstrLink, set https://ai.beehears.com plus your BeeHears token, then pull models.

Point the agent at localhost

Use the local Base URL and an AstrLink access token as the key.

Config

Typical agent config

Base URLhttp://127.0.0.1:8317/v1
API KeyAstrLink access token
ModelA model ID available on BeeHears

If the port is taken, AstrLink picks another—use whatever the app shows.

FAQ

Common questions

How does this relate to BeeHears?

BeeHears is a New API–compatible relay for keys, quota, and routing; AstrLink redacts on your machine. Chain them as Agent → AstrLink (local) → BeeHears → upstream models. AstrLink is an open-source New API ecosystem project—BeeHears does not own it.

Does content still go to AI providers?

Yes. Inference still runs with the provider you choose; what leaves is content already processed by your policy.

Do I have to download a privacy model?

Built-in rules work immediately. Download a model in AstrLink when you need name/address recognition.

Can you guarantee no leaks?

No. Detection can miss or false-positive. Dry-run first, then add false hits to an allowlist.

No zero-leak guarantee — but plaintext needn’t leave the machine.

Detection can miss or false-positive. Dry-run first, then tighten policy—and keep originals on-device.

Let the agent work.Keep secrets local.

Open source and early. Use BeeHears for quota, AstrLink for privacy.