tokeny-ai/TokenyTab
About
AI-native New Tab workbench: turn 107 websites & web apps into AI capabilities (charts, diagrams, code sandbox, Photopea…). Local-first, BYOK, powered by pi. | AI 原生新标签页工作台
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalTokenyTab
An AI-native New Tab workbench — turn your logged-in websites and web apps into AI tools, locally.
Local-first · Bring Your Own Key (BYOK) · Powered by pi Agent Engine
简体中文 · English
Demo Video · Highlights · Screenshots · Installation · Features · Architecture · Contributing
Note on UI Language: The extension UI and several built-in site tools are currently written in Simplified Chinese (
zh_CN). English i18n is on the roadmap — PRs and feedback are very welcome!
https://github.com/user-attachments/assets/0750f75b-cd56-46af-99b2-86cd5cfea2ba
Real AI streaming & multi-theme workflows · 107 Website Tools · Resizable interactive widgets · Live themes & weather · Download 1080p Original (42 MB)
TokenyTab replaces your browser's New Tab page (and adds an Alt+K side panel) with a local-first, AI-native personal workbench. It unifies browser context (tabs, history, bookmarks), personal knowledge, tasks, focus sessions, and 107 built-in Website Tools — with no backend server, no account required, and your own LLM API keys.
Highlights
⚡ Website Tools: Turn 107 Websites & Web Apps into AI Capabilities (No Extra API Keys)
- Reuse your existing browser sessions: Instead of configuring dozens of MCP servers or third-party API keys, TokenyTab runs tools directly in your browser using 5 execution modes — JSON APIs, HTML fetch, background tabs (with your logged-in session), interactive web apps, and 16 deep built-in engines.
- Beyond search — turn web apps into real AI tools: Drive Photopea with scripts, remove backgrounds / blur faces / upscale via iLoveIMG, render QuickChart data visualizations, Kroki architecture diagrams (PlantUML / D2 / Graphviz / C4), LaTeX formula PNGs, 2x Code Cards, run real code in a cloud sandbox (Codapi / Wandbox for Python / JS / TS / Go / Rust / SQLite), or deeply inspect any GitHub repo (meta + release + README) and Bilibili video + top comments. Images generated in one step flow directly into the next tool.
- Self-learning site tools: Whenever the AI figures out how to accomplish a task on a site without an existing tool, it can save the workflow as a reusable Website Tool (or click "Save as Website Tool" on any browser action card) for one-shot reuse next time.
🧭 Non-Intrusive Browser Automation & Background Conversations
- Dedicated agent tabs: Driven by accessibility snapshots and
[ref=eN]element references across 12browser_*tools (open, click, type, press, scroll, select, extract text, screenshot, back, close). The AI always operates in its own tab without hijacking the page you're reading, and asks for inline confirmation before sensitive actions. - True multitasking in the background: Navigate back to Home, start a new chat, or switch tabs while an agent is still running — tasks keep executing in the background. You can even steer or queue follow-up messages mid-run (
Enterto interrupt after the current step,Alt+Enterto queue after completion). - Context-aware Side Panel (
Alt+K): Shares chat history with the New Tab page, offering one-click actions to summarize, bookmark, screenshot-ask, or turn the current website into a custom tool.
🧩 Customizable Workbench & Generative Widgets
- Two-screen layout & adaptive aesthetics: Switch between Navigation and Cards boards with freeform drag-and-drop, resizable widgets (
1×1to3×2), per-card color theming with automatic WCAG contrast calculation, and live weather backgrounds that animate sun, clouds, rain, snow, lightning, and night skies. - Prompt-to-Widget: Describe what you want in plain language and pin a generated card — Markdown, links, countdowns, world clocks, RSS feeds, public JSON API charts, or scheduled AI-generated content.
- Daily productivity built in: Tab clustering & cleanup, local knowledge base with spaced-repetition daily reviews, RSS daily briefings, task inbox, distraction-aware focus mode, and local folder mounting (e.g. Obsidian vaults via File System Access API).
🔒 100% Local-First & BYOK
- Zero servers, zero telemetry: All conversations, notes, layouts, and API keys stay strictly inside your browser (
IndexedDB&chrome.storage.local). See PRIVACY.md. - Flexible model providers: Works out of the box with DeepSeek, Kimi, Zhipu, Claude, OpenAI, and any custom OpenAI-compatible endpoint (including local LLMs).
- Optional permissions & full Zip backup: History, bookmarks, and top sites are opt-in (
optional_permissions). Export and restore your entire workspace as a single.ziparchive at any time (with an option to exclude API keys).
Screenshots
![]() |
|
| New Tab Home: Live weather greeting, site launcher, resizable pinned cards, and omnibox AI composer | |
![]() |
![]() |
| Agent Chat & File Creation: Tool execution cards plus inline preview & download for generated Markdown, CSV, HTML, and JSON | Cards Board (Dark Mode): Daily briefing, focus timer, trending feeds, calendar, and custom widgets |
![]() |
|
| Website Tools Catalog: 107 built-in tools (including 16 deep web-app engines) plus custom & AI-learned tools |
Installation
Compatible with Chrome 120+, Edge, and other Chromium-based browsers.
Option 1: Download a Release (Recommended)
- Download the latest
tokenytab-x.y.z.zipfrom the Releases page and unzip it. - Open
chrome://extensions(oredge://extensions). - Enable Developer mode, click Load unpacked, and select the extracted folder.
- Open a new tab and follow the first-run guide to configure your LLM provider API key and optional permissions.
Option 2: Build from Source
Requires Node.js 22+:
git clone https://github.com/tokeny-ai/TokenyTab.git
cd TokenyTab
npm install
npm run build # outputs to dist/
Load the dist/ directory via Load unpacked in chrome://extensions.
Other development scripts
npm run dev # vite build --watch -> dist/
npm run check # TypeScript type-check
npm run package # build + zip to release/tokenytab-<version>.zip
npm run places # rebuild weather locations dataset public/places.json
Features
| Module | What it does |
|---|---|
| AI Agent | Powered by pi (@earendil-works/pi-ai + @earendil-works/pi-agent-core) with built-in tools, 107 website tools (16 deep engines), and 12 browser automation tools |
| Website Tools | 5 modes (api, page, tab, app, builtin), image tool chaining (Photopea, iLoveIMG, converter, QR, Mermaid), custom tool builder, and AI auto-learned tools |
| Browser Automation | Accessibility snapshots + [ref=eN] targeting in isolated agent tabs (browser_* tools) |
| Work Context | Purely local 7-day browsing pattern analyzer (no LLM calls) suggesting what to resume next |
| Tab Organizer | AI groups tabs by task into Chrome tab groups, suggests tabs to close, deduplicates, and suspends idle tabs |
| Knowledge Base & Recall | Right-click any selection/page to clip with AI summary, tags, related notes, spaced-repetition reviews, and semantic Chrome history search |
| Local Folder & Files | Mount local directories (e.g., Obsidian vault) via File System Access API; AI creates previewable Markdown/CSV/HTML/JSON files via create_file |
| Tasks, Briefing & Focus | Quick capture to AI-scheduled tasks, scheduled RSS/Atom daily briefings, and distraction-aware focus sessions with AI recaps |
| Weather & Appearance | Open-Meteo forecasts with animated weather cards & live weather wallpapers, custom card colors (WCAG-checked), and reduced-motion support |
| Generative Widgets & Skills | Create widgets from prompts and define custom /commands in Settings |
| Backup & Restore | One-click .zip export of all settings, chats, notes, tasks, layouts, custom tools, and wallpapers with preview before restore |
Architecture
newtab.html / sidepanel.html React UI running the pi Agent (extension pages can fetch LLM APIs directly)
offscreen.html Background AI jobs (note processing, briefings, focus recaps) dispatched by SW
background.js MV3 service worker: context menus, alarms, focus monitor (no pi-ai import)
public/content.js Page bridge: accessibility snapshots & [ref=eN] element interaction
src/shared/ai pi integration: Models, Agent factory, built-in tools, web & browser tools
src/shared/sitetools Website tools: catalog, IndexedDB store, runner, extractor, AI tool learning
src/shared/browserOps.ts Browser automation driver (browser_* tools)
src/shared/features Core domain logic (AI + IndexedDB)
src/ui/shell Top bar, two-screen pager, view router, theme engine
src/ui/nav, board, cards Navigation screen, card grid, and card widgets
src/ui/chat Prompt input, streaming chat, side panel, Photopea bridge
src/ui/overlays, views Modals and settings panels
- Strict provider compatibility: Chat cards and UI events are stored as pi
CustomAgentMessages(card,event) and folded into the next user message byconvertToLlm, ensuring compatibility with LLM providers that enforce strictuser/assistantturn alternation. - MV3 Service Worker constraint: Because MV3 service workers disallow dynamic
import()(used bypi-aito lazy-load provider SDKs), all LLM invocations run inside extension pages or theoffscreendocument while the service worker handles scheduling and browser events.
Contributing
Contributions are welcome — especially new Website Tools and English i18n!
- Want a website supported? Request a Website Tool
- Found a bug or have an idea? Open an Issue
- Ready to submit a PR? See CONTRIBUTING.md
If you find TokenyTab useful, consider giving it a ⭐ on GitHub!
Credits & Data Sources
- Agent runtime: pi (
@earendil-works/pi-ai,@earendil-works/pi-agent-core) - Weather locations dataset (
public/places.json) built viascripts/build-places.mjsfrom QWeather LocationList, GeoNamescities15000(CC BY 4.0), and OpenCC (Apache-2.0)
License
Explore related projects
Loading…



