跳转至

Set up the Coworker

Everything works with no API keys in the fictional demo workspace. Each key below unlocks one more real capability.

Run it

cp packages/backend/.env.example packages/backend/.env
docker compose up --build

Open http://localhost:3000, create an account, and you land in coworker onboarding. Choose Try the Anote demo workspace.

Configuration

Variable Unlocks
OPENAI_API_KEY GPT-6 Luna for chat, drafting, calls, and recurring tasks (default model gpt-6-luna; override with COWORKER_MODEL).
ANTHROPIC_API_KEY Optional Claude models. When a provider's balance is exhausted, the coworker tries COWORKER_FALLBACK_MODELS in order. Without any hosted key, an offline planner handles common requests.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_COWORKER_REDIRECT_URI Your real Gmail, Calendar, and Drive
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT, MICROSOFT_REDIRECT_URI Your real Outlook mail and calendar (Microsoft 365 or a personal account), from an Entra ID app registration. The same app powers "Continue with Microsoft" sign-in (redirect URI BACKEND_URL/auth/microsoft/callback, override with MICROSOFT_LOGIN_REDIRECT_URI)
SLACK_CLIENT_ID, SLACK_CLIENT_SECRET Slack OAuth. You can also paste a user token (xoxp-…) in Settings.
SLACK_SIGNING_SECRET Real-time Slack: Slack pushes each message to /api/coworker/slack/events instead of a one-minute poll
ELEVENLABS_API_KEY Server voice and voice cloning for your twin
RECALL_API_KEY Meeting bot for Zoom, Meet, and Teams
TAVUS_API_KEY, TAVUS_REPLICA_ID Real-time video avatar
STRIPE_PRICE_COWORKER*, COWORKER_ENFORCE_PLANS=1 Paid plans and plan gating
PILOT_SLACK_WEBHOOK_URL, PILOT_BOOKING_URL, PILOT_ADMIN_EMAILS Founder pilot applications from ourogen.ai. Admins must have signed in with Google or Microsoft at least once as that address (a typed-in email doesn't count)
JWT_ACCESS_TOKEN_DAYS How long a sign-in lasts (default 14 days)
SMTP_URL, SMTP_FROM Relay for approval and digest emails when the user's Gmail can't send (smtp://user:pass@host:587 or smtps://…:465)
NOTIFY_BATCH_SECONDS, NOTIFY_MIN_INTERVAL_SECONDS Approval email batching (default 300s) and rate limit (default 1800s)
HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET HubSpot OAuth. Approved CRM updates from calls upsert the company and contact and log a note. Without OAuth, users can paste a private app token (pat-…) with contact and company scopes.
SENTRY_DSN, ALERT_SLACK_WEBHOOK_URL Error tracking for the backend and worker; Slack alerts when an approved action fails or a sync errors (throttled to one per problem per 15 minutes)
COWORKER_RETENTION_DAYS, COWORKER_TRANSCRIPT_RETENTION_DAYS, COWORKER_ACTIVITY_RETENTION_DAYS Delete synced content after 180 days, raw call transcripts after 180 (summaries are kept), and the activity log after 730. The worker applies them every 6 hours.
REDIS_URL Shared rate limits for public endpoints (pilot form, meeting webhook). Without Redis, limits are per process.
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_NUMBER, TWILIO_WHATSAPP_FROM, TWILIO_WEBHOOK_URL Text your coworker by SMS or WhatsApp, and approve by text. Point the number's webhook at BACKEND_URL/api/coworker/sms/inbound
COWORKER_INBOUND_DOMAIN, COWORKER_INBOUND_TOKEN, COWORKER_INBOUND_REQUIRE_AUTH Email your coworker: CC or forward to <first name>@<domain> (Postmark or SendGrid inbound webhook at BACKEND_URL/api/coworker/email/inbound?token=…)
COWORKER_MODEL_PRICES Optional. Prices for models not built into the meter, as JSON: {"my-model": [2.5, 10]} (USD per million input, output tokens)
MICROSOFT_BOT_APP_ID, MICROSOFT_BOT_APP_PASSWORD, MICROSOFT_BOT_TENANT Microsoft Teams bot (Azure Bot; endpoint BACKEND_URL/api/coworker/teams/messages)
GOOGLE_CHAT_AUDIENCE Google Chat app (HTTP endpoint BACKEND_URL/api/coworker/gchat/events; the project number)
SLACK_BOT_ENABLED The @mentionable Slack bot (see the launch guide for the Slack app settings)
EXPO_ACCESS_TOKEN, COWORKER_PUSH Mobile push through Expo (the token is optional, for enhanced push security). COWORKER_PUSH=0 turns pushes off.
COWORKER_MODEL, COWORKER_FALLBACK_MODELS, OPENAI_API_KEY, GEMINI_API_KEY, OLLAMA_BASE_URL, COWORKER_EXTRA_MODELS Model choice. Users pick a model in Settings → Model: OpenAI (default gpt-6-luna), Claude, Gemini, or a local Ollama model. A model is offered when the server has a key for it or the user added their own. COWORKER_FALLBACK_MODELS is a comma-separated failover order for exhausted balances. COWORKER_EXTRA_MODELS=openai:gpt-6.2-sol,google:gemini-3-pro adds ids.
STRIPE_PRICE_COWORKER, STRIPE_PRICE_COWORKER_CALLS, STRIPE_PRICE_COWORKER_TEAM Plan changes in Settings → Plan & usage. The first purchase goes through Checkout. Later upgrades and downgrades swap the subscription price, prorated. Moving to Free cancels at period end. Changes made in Stripe's billing portal sync back through the webhook.
VOICEPRINT_BACKEND, VOICEPRINT_REQUIRED Voice match before cloning: local (default, needs ffmpeg) or resemblyzer. VOICEPRINT_REQUIRED=0 disables the check (development only).
COWORKER_SYNC_MODE thread (default) syncs on a background thread in the web process; worker leaves sync to coworker-worker

Google

  1. In Google Cloud Console, enable the Gmail, Calendar, and Drive APIs.
  2. On your OAuth client, add the redirect URI http://localhost:5000/api/coworker/connections/google/callback.
  3. While the app is unverified, add yourself as a test user on the consent screen. Restricted Gmail scopes need Google's verification (CASA assessment) before public launch.

Background worker

The web app runs the coworker loop while it's open. The coworker-worker service in docker-compose.yml runs it for everyone in the background:

python -m coworker.worker            # every 60s
python -m coworker.worker --once

Check vendors before going live

cd packages/backend
python -m coworker.vendor_check

Each configured vendor gets one read-only call: Anthropic, ElevenLabs (plan and cloning allowance), Recall.ai, Tavus, Google and Slack OAuth config, SMTP, S3, Redis, and the voice-match decoder. Nothing is sent, joined, or cloned. Admins (PILOT_ADMIN_EMAILS) can also open GET /api/coworker/admin/vendors.

Evals

cd packages/backend
python -m coworker.evals.run

Seven suites, 249 cases, every write mocked:

Suite Checks Threshold
triage Inbound email lands in the right category 85%
call_guardrails Disclosure, escalation, and leave-on-request on calls 100%
recall Memory finds the right source 85%
injection A fooled agent's action is still held for you (containment) 100%
injection_detection Attacks are also flagged as suspicious 85%
benign Normal mail that looks similar isn't flagged 90%
call_injection Spoken attacks never produce a commitment 100%

CI runs them on every push and blocks merges on a regression. Results are uploaded as the coworker-eval-results artifact.

Track scores over time. Append a run to coworker/evals/history.jsonl and render the dashboard (a single HTML file):

python -m coworker.evals.run --record
python -m coworker.evals.report   # writes coworker/evals/report.html

Replay real decisions. Export a pilot user's decided actions as anonymized cases, then replay them against today's code. The replay fails if triage, risk flags, or the need for approval changed:

python -m coworker.evals.replay export --user 42 --out cases.jsonl
python -m coworker.evals.replay run --cases cases.jsonl