进阶 www.newapi.ai 2026-11-23 02:52:54 · 0 阅读
第4章 AstrLink AI Privacy Gateway - On-Device Redaction for AI Agents
AstrLink · On-device privacy gatewaySecrets stay local.
Agents keep working.Secrets, phone numbers and names are swapped for placeholders on your machine, then restored when the reply arrives.Visit astrlink.comStar on GitHubOpen source · macOS / Windows / Linux · New API ecosystemYour computerYour agentClaude Code · CodexAstrLinkRedact · restoreNew APIKeys · quotas · routingUpstream modelsOpenAI · Claude · GeminiWhat your agent reads# .envDB_URL=postgres://admin:q7Vt2LmX9pRk@10.0.3.17/prodONCALL=Zhang Wei <[email protected]>What the model receives# .envDB_URL=postgres://admin:secret@IP/prodONCALL=name Replies are restored on your machine, so your agent carries on.Fictional example. Results depend on your policies.Why it mattersAgents that do more can leak moreIt reads files on its ownAgents open .env files and logs. What you never pasted can still get sent.Every hop sees plain textProvider APIs, third-party services and team gateways all see the full request.Customer data lands in logsNames, phone numbers and internal IPs can stay in a provider's request logs.DetectionTwo detectors, both on your machineBuilt inBuilt-in rulesEmails, phone numbers, card numbers and common key formats, right after install.Local modelAstrLink GuardNames, addresses, account IDs and credentials buried in code and logs.~35 MB · runs offline · Chinese and EnglishYou choose what happens on a matchWarn and continueBlock the requestRedact and continuePlaceholders in replies are restored on your machine.If the privacy model fails to load, requests are rejected.With New APIConnect New API in three stepsNew API handles quotas. AstrLink handles privacy.1Create a token in New APIGive AstrLink its own token, with model and quota limits.2Add it as a providerEnter your New API URL and token in AstrLink, then fetch models.3Point your agent hereUse the local address as the base URL and an AstrLink access token as the key.Agent settingsBase URLhttp://127.0.0.1:8317/v1API KeyAstrLink access tokenModelA model ID from New APIIf the port is taken, AstrLink picks another. Use the one shown in the app.What else it doesManage your AI tools in one placeSubscriptions and APIsCodex, Claude and Grok subscriptions, provider APIs and New API.Routing and failoverModel redirects, provider priority and automatic retries.Multiple protocolsOpenAI, Anthropic and Gemini endpoints with protocol conversion.Request recordsTraces, errors and estimated cost for every request.FAQHow does it relate to New API?Both are part of the New API ecosystem. New API manages keys and quotas on the server, AstrLink handles sensitive data on your machine, and you can chain them.Is my content still sent to AI providers?Yes. Your chosen providers still run inference, on content your policies have processed.Do I need the privacy model?Built-in rules work right away. Download the model in the app when you need to catch names and addresses.Does it guarantee nothing leaks?No. Detection can miss things and flag false matches. Try a dry run first and allowlist false matches.Hand off the work.
Keep the secrets.Free and open source. Still early, so feedback is welcome.Visit astrlink.comStar on GitHub
上一篇
第3章 New API Plugins - Model Adapters and Generation Tasks
下一篇
第5章 New API blog: event decks and schedules