Skip to content

zero-click/zero-token-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Token Extension

中文说明

Local-first Chrome extension for capturing Microsoft 365 API tokens and X session cookies, then syncing them into a shared JSON store for CLI automation.

What it does

  • Captures Microsoft Graph, Outlook, and SharePoint Bearer tokens from browser traffic
  • Captures X ct0 and auth_token cookies through Chrome cookie APIs
  • Syncs everything into ~/.zero-click/.env.json
  • Keeps credentials local; nothing is sent to a remote server

Requirements

  • Google Chrome with Developer Mode enabled
  • Python 3 for the native messaging host
  • A local checkout of this repository

Repository layout

zero-token-extension/
├── extension/    # Load-unpacked Chrome extension
├── native-host/  # Local sync bridge, store helpers, migration tools
├── LICENSE
├── README.md
└── README.zh-CN.md

Supported sources

Site Credential Typical use
Outlook Web Graph + Outlook Mail, calendar, Teams-adjacent Graph calls
Teams Web Graph Teams chat and Graph-backed actions
OneDrive / SharePoint SharePoint Files, recordings, transcripts
X ct0 + auth_token X session automation

Install the extension

  1. Open chrome://extensions/
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select zero-token-extension/extension/

Enable local sync

  1. Copy the extension ID from chrome://extensions/
  2. Run:
python3 native-host/install_native_host.py --extension-id YOUR_EXTENSION_ID
  1. Reload the unpacked extension

If you previously loaded a different unpacked path, Chrome may assign a new extension ID. Re-run the installer with the new ID when that happens.

Daily usage

  1. Use Outlook, Teams, SharePoint, OneDrive, or X normally
  2. Open the extension popup
  3. Review the captured credentials
  4. Click Sync to local

The popup shows capture status, token freshness, cookie persistence, and sync results.

Local store format

Credentials are stored in ~/.zero-click/.env.json with a schema-versioned structure:

{
  "schema_version": 1,
  "o365": {
    "graph": {},
    "outlook": {},
    "sharepoint": {}
  },
  "x": {
    "ct0": "",
    "auth_token": ""
  }
}

CLI helpers

Save a copied token directly:

python3 native-host/save_token.py "eyJ..."

The helper auto-detects the token type and updates the shared store.

Privacy and security

  • Credentials stay in Chrome local storage until you explicitly sync them
  • Native sync writes only to local files on your machine
  • The repository contains code only; do not commit your real ~/.zero-click/.env.json

Development notes

  • Extension version: 1.0.12
  • Native messaging host name: dev.zerotoken.extension_bridge
  • After moving the repository to a different path, rerun native-host/install_native_host.py

About

Local-first Chrome extension that captures Microsoft 365 API tokens and X session cookies, then syncs them to a shared local JSON store for CLI automation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors