TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I built a portable AI account that connects to apps with one click

8 点作者 miguelaeh3 个月前

1 comment

miguelaeh3 个月前
Hi HN!<p>I believe there are many issues for devs and users with the current approach of copy-pasting AI provider API keys into applications.<p>I have built brainlink.dev as a solution to this and would love to get your feedback.<p>It is a portable AI account that users can connect with one click to every application that integrates the SDK. It works as follows:<p>1. The user clicks the connect button to link his brainlink account with the app. 2. The app obtains an access token to perform inference on behalf of the user, so the user pays for the usage.<p>Behind the scenes, a secure Auth Code Flow with PKCE takes place so that the app obtains an access and refresh token instead of directly an API key. When the application calls a model providing a user access token, the user pays for the inference.<p>I believe this approach offers multiple benefits to both, developers and users.<p>As a developer:<p>- I can build and test my app against a specific model without being tied to what API key the user provided, ensuring that everyone gets the same UX.<p>- I can easily move my app to a different model at any time. Without brainlink, if users add, let&#x27;s say, an OpenAI API key, to change to Claude I would need to ask every user to update their API key.<p>- Asking for API keys goes against the ToS of most providers<p>As a user:<p>- The initial friction of configuring API keys disappears, especially for non-technical users who don&#x27;t know what&#x27;s an API key.<p>- My privacy increases because AI providers can&#x27;t track my usage as it goes through the proxy.<p>- I have a single account that I can connect to multiple apps and see how much each app is consuming<p>- I can easily revoke connections (tokens)<p>I tried to make it very simple to integrate with an embeddable button, but you can also create your own button. Here is a live demo with a very simple chat: <a href="https:&#x2F;&#x2F;demo.brainlink.dev" rel="nofollow">https:&#x2F;&#x2F;demo.brainlink.dev</a><p>I would love to hear your feedback and would be happy to help anyone who wants to integrate it.