Free · MIT · Open source

Open Exec

An open-source executive assistant for your Gmail and Google Calendar. It triages the inbox, reads the threads that matter, finds free time, drafts replies and puts events on your calendar.

Get a CompanyFabric keyGitHub repo coming soon

Features

What it does

Inbox triage

Gmail search with Gmail query syntax, and whole threads read when they matter.

Drafts, never sends

Replies land in Gmail as drafts after your approval, and you press Send. The app has no send tool.

Free time and events

Finds free windows on weekdays in working hours in your time zone, and creates events after approval with no invitation emails.

Policies decide the Google scopes

Deny a tool in assistant.config.ts and Connect Google stops asking for its scope.

Your own OAuth client

Each deployment uses its own Google OAuth client, so mail goes from Google to your server and nowhere else. Tokens are sealed with AES-256-GCM.

Try it without Google

The DEMO runs on a built-in sample mailbox of fictional people, including a prompt injection the assistant reports instead of obeying.

One key, every model

Use with your CompanyFabric key

  1. 1

    Create an account and make a key on the keys page. New accounts get starter credit.

  2. 2

    Put it in the template's .env. companyfabric/auto picks a suitable model per request, and the exact charge of each turn comes back with the answer.

  3. 3

    Run it: pnpm dev for lite (Vercel works), or docker compose up for Hermes. With no key it runs a clearly labelled demo.

OPENAI_BASE_URL=https://api.companyfabric.com/v1
OPENAI_API_KEY=sk-cf-…
MODEL=companyfabric/auto

OpenAI directly, or a local server such as Ollama, LM Studio or vLLM, works too: any OpenAI-compatible endpoint with tool calling.

Runtimes

Lite or Hermes

Lite runs the agent loop in the Next.js server. Hermes runs each turn in a Hermes Agent container (v0.22.5, pinned by digest), which calls the app's tools back over MCP, so policies, approvals and the audit log are the same.

CapabilityLiteHermes
Inbox triage (Gmail search and read)YesYes
Reply drafts, saved to Gmail after approvalNever sent; you send from GmailYesYes
Free-time search and events after approvalYesYes
Web search for contextYesYes
Audit row before every tool callYesYes
Memory across threads (preferences, people)Hermes memory toolsetNoYes
Morning brief on a schedule (cron)Hermes cron works; this UI does not manage schedules yetNoNot in the UI yet
Runs on serverless hosting (Vercel)Hermes needs a long-running containerYesNo

What is proven

Status

Early. Checked in CI on every change: Install, typecheck, unit tests and production build; Hermes starts with the app's tools loaded (no model is called in CI); Contract tests: OAuth state and PKCE, sealed tokens, token refresh and revocation, draft headers, free-time search across time zones, approvals.

  • implemented-untestedGmail search, read and drafts against live Google
  • implemented-untestedCalendar list, free time and events against live Google
  • implemented-untestedSearch through Parallel or Exa
  • implemented-untestedA Hermes turn with a real model
  • not yetManaging a scheduled morning brief from the UI

Configuration

Environment

VariableDefaultWhat it is
GOOGLE_CLIENT_IDnoneYour own Google OAuth client (Web application).
GOOGLE_CLIENT_SECRETnoneIts secret.
APP_URLhttp://localhost:3000The redirect URI is APP_URL + /api/google/callback.
TOKEN_KEYnoneSeals Google tokens at rest. Generate with: openssl rand -hex 32
DEMO_DATAfalsetrue runs a live model on the built-in sample data.
APP_PASSWORDnoneSet it whenever the app is reachable from anywhere but your own machine. There is no login by default.
OPENAI_BASE_URLhttps://api.companyfabric.com/v1Any OpenAI-compatible chat.completions endpoint with tool calling.
OPENAI_API_KEYnoneThe model key. With none set, the app runs a labelled DEMO.
MODELcompanyfabric/autoThe model id. companyfabric/auto picks a suitable model per request.
SEARCH_PROVIDERparallelparallel (free, rate-limited, no key) or exa. companyfabric is not released yet.
PARALLEL_API_KEYnoneLifts Parallel's free-tier limits.
EXA_API_KEYnoneNeeded when SEARCH_PROVIDER=exa.
COMPANYFABRIC_SEARCH_ENABLEDfalseCompanyFabric search is not released yet; leave it off.
RUNTIMEnonelite or hermes. Empty: hermes when HERMES_URL is set, lite otherwise.
HERMES_URLnoneSet for you by docker-compose.yml.
HERMES_API_KEYnoneHermes only. Generate with: openssl rand -hex 32
TOOL_TOKENnoneHermes only: lets Hermes call the app's tools at /api/mcp. Generate with: openssl rand -hex 32
DATA_DIR./dataWhere the SQLite database lives.

MIT

License

Open Exec is MIT-licensed, © 2026 Creative Tim. Its UI is adapted from AI Elements (Apache-2.0) and shadcn/ui (MIT).

Not affiliated with Google, or with any company whose products offer AI assistants.

All templates →