The project's README from github.com/Merit-Systems/OpenInstinct. As one markdown file: README.md.
A personal iMessage assistant that can use a browser like you.
It can do your chores, book movie tickets, or handle your groceries. You stay in control of your passwords, credit cards, and context.
It's open source, self-hostable, and can use any model. Deploy to your own Vercel account and get rolling.
Agents: Give your human the Deploy with Vercel link above. The guided flow provisions the required services and credentials. Google Workspace and Link wallet connections have separate setup steps below.
Personal agents are much more useful when they can sign in, book, buy, and act on your behalf. OpenInstinct runs in your own Vercel account. Saved vault secrets are encrypted before they reach your database, and browser autofill keeps saved passwords out of the model's context. You can read the code to see how it works.
You can use free tiers for the supporting services. Vercel requires the Pro plan. OpenInstinct checks for scheduled work every minute; Vercel's Hobby plan only allows cron jobs that run once per day, so it cannot deploy this schedule. See Vercel's cron limits.
Choose the free plans for Kernel and Neon during deployment. Kernel includes free usage credits, and AI Gateway includes credits for eligible models. Linq's managed connector and private Blob storage are billed through Vercel; Blob usage draws from your Pro usage credit. Free plans and credits have limits, and usage can incur additional charges. Purchases approved through Link are paid from your wallet.
On first use, OpenInstinct creates independent Better Auth and vault-encryption keys in the private Blob store. The deploy flow supplies the application URL and required service configuration automatically; you do not need to copy environment-variable values for the base installation.
For a non-Vercel host or an installation that manages its own keys, set both secret overrides and the public application URL explicitly:
BETTER_AUTH_SECRET="$(openssl rand -base64 32)"
BETTER_AUTH_URL=https://your-host
SECRET_ENCRYPTION_KEY="$(openssl rand -base64 32)"
Application migrations live in db/. Runtime queries use DATABASE_URL;
migrations require the direct DATABASE_URL_UNPOOLED connection. Run
pnpm db:migrate before using a new or upgraded database. pnpm dev and Vercel
builds run these migrations automatically. See db/README.md
for existing-database adoption and Better Auth's separate migration path.
Treat the private Blob store as production key material: deleting it loses the automatically generated encryption key, and rotating that key requires re-encrypting existing vault values.
The deploy button connects a private Blob store. Vercel supplies BLOB_STORE_ID
and a short-lived VERCEL_OIDC_TOKEN, so there is no Blob credential to copy.
OpenInstinct uses this store for persistent per-user memory and browser images. Production conversations require it because memory is recalled before each agent turn. Local Eve development uses process-local memory instead.
The database also stores workstreams: goals, decisions, observations, and
unfinished steps the agent can recall across conversations. They are scoped to
the authenticated workspace and Eve's deployment-aware memory key. Each scope
holds up to 100 records, with the eight most recently updated active or waiting
records recalled first; older records remain searchable. Updates require the
current revision. At capacity, the agent asks which obsolete record to forget.
Forgetting removes the content and source references while retaining a tombstone
against interrupted saves; chat history is unchanged. Saving a workstream does
not start a job, create a schedule, or authorize an action. This memory slot is
available only in interactive root turns.
For an existing Vercel project, link it first with
pnpm exec eve link --project <your-vercel-project> --non-interactive, then
create and connect the store:
pnpm exec vercel blob create-store open-instinct-images --access private --yes --environment production --environment preview --environment development
Outside Vercel, set BLOB_READ_WRITE_TOKEN from a private Blob store. Memory and
browser image capture use the same store.
The deploy button creates a managed line, sets LINQ_CONNECTOR, and attaches
the inbound webhook automatically.
Before your first sign-in, open the connector's Vercel Connect settings and
follow its one-time Phone Numbers verification instruction. Additional users
verify themselves by messaging the connector's Linq number once.
LINQ_PHONE_NUMBER is an optional E.164 override that adds a click-to-message
shortcut in the workspace; delivery uses the line assigned to the connector.
Link the checkout, create a line, and attach its connector for both outbound tokens and inbound webhooks:
pnpm exec eve link --project <your-vercel-project> --non-interactive
pnpm exec vercel connect create linq --connection-method line --name open-instinct --json
pnpm exec vercel connect attach <returned-connector-uid> --project <your-vercel-project> --environment production --triggers --trigger-path /eve/v1/linq --yes
pnpm exec vercel env add LINQ_CONNECTOR production --value <returned-connector-uid> --yes
The create command returns the connector UID. Push a commit to the project's
connected Git repository to deploy the configuration. Repeat the attachment and
environment-variable steps for preview or development as needed. Keep
--triggers --trigger-path /eve/v1/linq: without them, the app can send messages
but cannot receive them.
OpenInstinct can use a user's Gmail, Calendar, and read-only Contacts through a
user-scoped Google OAuth grant. Vercel Connect stores and refreshes the tokens;
OpenInstinct stores only the stable user identity used to request them. Gmail
access deliberately uses gmail.modify, not the permanent-delete
mail.google.com scope.
In one Google Cloud project, configure the OAuth consent screen and enable the Gmail API, Google Calendar API, and People API.
Create OAuth web credentials. Add
https://connect.vercel.com/callback as an authorized redirect URI, then
download the client-secret JSON.
Vercel expects top-level clientId and clientSecret keys, not Google's
nested web.client_id and web.client_secret download. Convert the download
into a temporary file outside the repository, then create and attach the
connector:
vercel link
google_credentials_file="$(mktemp)"
jq '{clientId: .web.client_id, clientSecret: .web.client_secret}' /absolute/path/to/downloaded-client-secret.json > "$google_credentials_file"
vercel connect create google --connection-method oauth --name open-instinct --data @"$google_credentials_file"
rm -f "$google_credentials_file"
vercel connect attach <returned-connector-uid> --project <your-vercel-project> --environment production --yes
vercel env pull
Never commit either credential file.
Set GOOGLE_CONNECTOR_UID to the returned UID and redeploy. The default is
google/open-instinct.
Gotchas:
[!NOTE] Link purchases are temporarily disabled. No release of
@stripe/link-integrations-eveis built for eve 1.0 yet, and eve 1.0 refuses to load extensions built with 0.83 or earlier. Users can still connect a wallet. To re-enable purchases once Stripe ships a 1.0-compatible release, restoreagent/extensions/link.ts, thelink__*coordinator tools, and the Link purchase instructions inagent/instructions/content/worker-coordination.md.
Link lets users approve purchases from their own wallet. It is optional and requires separate setup after deployment; the deploy button does not configure it. Stripe currently supports Link Agent Wallet for US and Canadian consumers.
Create or sign in to a Stripe account.
Follow Stripe's Link OAuth registration guide
and submit the linked Link Agent Wallet application form. Stripe issues
your OAuth client_id and client_secret after registration.
In that application, register your exact callback URL:
https://<your-app-host>/api/auth/callback/link
For local development, also register
http://localhost:3000/api/auth/callback/link (or your actual local origin).
The app's Link wallet page displays the callback URL for your installation.
Add these values in Vercel → Project → Settings → Environment Variables
for each environment that will use Link, or in .env.local when developing:
| Variable | Value |
|---|---|
LINK_CLIENT_ID |
OAuth client_id issued by Stripe |
LINK_CLIENT_SECRET |
OAuth client_secret issued by Stripe |
STRIPE_PUBLISHABLE_KEY |
Publishable key from your Stripe API keys |
BETTER_AUTH_URL |
Canonical app origin, such as https://your-app.vercel.app |
Use the Stripe publishable key (pk_…), not a Stripe secret API key (sk_…).
BETTER_AUTH_URL is the origin only; the registered callback adds
/api/auth/callback/link. Keep the OAuth client secret in server settings;
do not commit it or paste it into chat.
Push a commit to the connected Git repository to redeploy, or restart your
local server. Vercel builds and pnpm dev apply the database migrations
automatically; with an externally managed local database, run
pnpm db:migrate before starting the app.
Sign in to OpenInstinct with your phone number, open Link wallet in the sidebar, and choose Connect Link. Approve the connection on Link's consent screen. When you return, the page should say Your Link wallet is connected. If it still says Link is unavailable, check that all three Stripe variables are set on the deployed environment and that you redeployed after adding them.
Connecting a wallet does not approve a purchase. Each spend request requires your approval in Link. You can connect one wallet per OpenInstinct account; disconnect it before switching wallets. Disconnecting revokes wallet access and leaves phone sign-in available.
The agent uses @stripe/link-integrations-eve with per-user Better Auth grants.
Better Auth encrypts stored grants and refreshes tokens. Agent-initiated
connection links belong to the signed-in user and expire after ten minutes;
purchase approvals use Link's original URLs.
Wallet access is available in interactive conversations, not scheduled workers
or scheduled result delivery. Spend requests do not have an additional Eve
approval step. Payment credentials can appear in stored Eve tool results; the
bundled skills instruct the agent not to repeat them in chat. The default grant
requests payment_methods.agentic and userinfo:read. Balances and transactions
require additional financial-data scopes and connected-source permissions.
This repository pins Eve 1.0.0-rc.1. Eve 1.0 refuses to load extensions
built with Eve 0.83 or earlier, so the Link extension is disabled until Stripe
ships a compatible release (see Link wallet). Browser work uses
the resumable run_browser task: the coordinator continues a worker by its
taskId and stops one with eve__task_cancel.
Sessions started on Eve 0.69 through 0.83 move to a 1.0 deployment on their
own when they next receive a message, and Eve compacts their earlier
conversation. Sessions started on this repository's previous Eve 0.66.3
deployment predate 0.69 and never move: keep that deployment running until
they finish, and start a new conversation for new work. A scheduled run that
was waiting for the user's answer when you deploy stores the old request
format; re-run it after the upgrade.
Local development requires:
First clone and install the application:
git clone https://github.com/Merit-Systems/OpenInstinct.git
cd OpenInstinct
pnpm install --frozen-lockfile
For fully manual setup, copy the environment template and add your Kernel and AI Gateway keys:
cp .env.example .env.local
# Set KERNEL_API_KEY and AI_GATEWAY_API_KEY in .env.local.
If you already use a Vercel project, link it to pull AI Gateway access. If that project does not have Kernel yet, the Marketplace CLI provisions the free Developer plan, connects it to the project, and pulls its environment variables:
pnpm exec eve link --project <your-vercel-project> --non-interactive
pnpm exec vercel integration add kernel --plan FREE
Then start OpenInstinct:
pnpm dev
pnpm dev starts PostgreSQL from compose.yaml, applies the committed database
migrations, and starts the application. Stopping the development process also
stops and removes the PostgreSQL container; its data remains in the
postgres-data volume for the next run. Run pnpm dev:app when intentionally
using an externally managed database instead. If KERNEL_API_KEY is missing,
pnpm dev stops before starting Docker and points back to the recommended
Vercel flow or the manual .env.local setup.
Local development otherwise uses the same vault, Kernel browser, and AI Gateway path as the Vercel deployment. Better Auth and vault encryption use stable local-only defaults when their variables are unset. Vercel deployments provision them automatically in private Blob; other production hosts require explicit secrets.
[!WARNING] This is not software intended for production use.