whatisgithub

What is aipocket?

sfzxc/aipocket — explained in plain English

Analysis updated 2026-05-18

14TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A Chrome extension that stores your AI API keys locally and lets websites use them through approved, scoped sessions instead of ever seeing the actual key.

Mindmap

mindmap
  root((repo))
    What it does
      Stores AI API keys in browser
      Grants scoped access to sites
      Streams AI output back
    Tech stack
      TypeScript
      Chrome extension
      npm package
    Use cases
      Use AI web apps without sharing keys
      Approve or deny site access
      Integrate via connect-modal package
    Audience
      Web developers
      Privacy conscious users
    Status
      Preparing v0.1.0 release
      Chrome Web Store pending
      Apache 2.0 licensed

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Use AI-powered websites without ever pasting your own API key into them.

USE CASE 2

Approve or deny a website's request to use a specific AI provider and model.

USE CASE 3

Add AIPocket support to a web app using the @aipocket/connect-modal package.

USE CASE 4

Set per-session request limits to cap how much a website can use your API key.

What is it built with?

TypeScriptChrome Extension

How does it compare?

sfzxc/aipocket0xbebis/hyperpayalfredxw/nova
Stars141414
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardmoderate
Complexity3/55/53/5
Audiencedeveloperdeveloperwriter

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires building the extension with npm and loading it unpacked into Chrome's developer mode.

Use freely for any purpose, including commercial use, as long as you keep the copyright and license notice.

So what is it?

AIPocket is a Chrome browser extension that stores AI API keys inside the browser rather than giving them to websites. Many AI-powered web tools ask users to paste in their own API keys, which means handing long-lived credentials to a third-party website. AIPocket sits between the website and the AI provider, so the website gets access to AI responses without ever seeing the underlying key. The extension works by letting websites request permission to use AI through a pop-up approval screen. When a website wants access, the user sees which provider and which specific models are being requested, and can approve or deny it. Approved sessions are scoped to a specific origin, provider, and set of models, and can have a per-session request limit. The website receives streamed AI output through the extension while the API key stays inside it. Supported providers include OpenAI-compatible APIs, Anthropic-compatible APIs, OpenRouter, and Gemini. Adding a provider means opening the extension popup, entering a name and API key, optionally adding an endpoint URL, and saving. Optional per-session request caps can be set at the same time. For web developers who want to add AIPocket support to their sites, the project provides an npm package called @aipocket/connect-modal. A website imports the package, calls a connect function specifying a provider and a list of allowed models, and then streams responses through the approved session. The repository also includes a demo web application showing a basic chat interface that connects through the extension. The project is structured as a monorepo containing the Chrome extension itself, the demo website, the integration package, and shared protocol types. It is written in TypeScript and licensed under Apache 2.0. The project is working toward a v0.1.0 public release on the Chrome Web Store.

Copy-paste prompts

Prompt 1
Help me build and load the AIPocket Chrome extension for local testing.
Prompt 2
Explain how AIPocket keeps my AI API key hidden from websites that use it.
Prompt 3
Walk me through integrating @aipocket/connect-modal into my web app.
Prompt 4
What providers does AIPocket support and how do I add one?

Frequently asked questions

What is aipocket?

A Chrome extension that stores your AI API keys locally and lets websites use them through approved, scoped sessions instead of ever seeing the actual key.

What language is aipocket written in?

Mainly TypeScript. The stack also includes TypeScript, Chrome Extension.

What license does aipocket use?

Use freely for any purpose, including commercial use, as long as you keep the copyright and license notice.

How hard is aipocket to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is aipocket for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.