
Omentir
io.github.vanshyadav1408v1.1.0更新于 Sep 28, 2026
Find LinkedIn prospects, draft outreach, and run human-paced campaigns from your AI agent.
安装
在 SourceWeft 中
- 打开 控制台中的 Omentir,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"omentir": {
"type": "http",
"url": "https://omentir.com/api/agent/v1/mcp"
}
}
}README
Omentir
Omentir is an open-source alternative to LinkedIn outreach and automation tools like HeyReach and Gojiberry.
It's an AI sales workspace for finding qualified LinkedIn prospects, drafting contextual outreach, running human-paced campaigns, and handling replies — but you own the code and run it on your own infrastructure.
Use the managed product at omentir.com, or self-host the same application code with your own Firebase, Gemini, and Unipile accounts.
One codebase: hosted cloud and self-host share this repo. RUN_LOCALLY=TRUE switches auth, billing, marketing, and hosted-only mail off. Public brand contacts for omentir.com stay in source on purpose (see src/lib/hosted-identity.ts); they are not used for self-hosted operation.
Connect from other AI apps (Claude, ChatGPT, Grok, Grok Bot, Cursor, …)
People use Omentir from chat and coding agents without sharing LinkedIn passwords:
- In Omentir: connect LinkedIn and fill Workspace.
- Chat apps (Claude, ChatGPT, Grok): Settings → Connectors → add
https://omentir.com/api/agent/v1/mcp→ sign in and approve Connect workspace → enable tools in the chat.
No API key. - Grok Bot (the always-on teammate app, not grok.com chat): Settings → Plugins → search Marketplace for Omentir. If it is not listed, add the same MCP URL as a custom server → approve Connect workspace. Do not sign LinkedIn into the Bot computer. Grok Bot integration.
- Cursor / Claude Code / scripts: create a key on the API page and send
Authorization: Bearer <token>to the MCP endpoint or REST/api/agent/v1/*. - Ask the assistant to create a classic lead finder or a Steal Customers agent (
mode: steal_customers+ competitor company URLs). If you have more than one company, ask it to list workspaces and switch.
Docs: MCP integration, Agent API, agents.md (machine guide), OpenAPI.
Self-hosting
Omentir is self-hostable with external managed services. It is not offline or dependency-free. You provide Firebase/Firestore, Unipile, and either a Gemini API key or a Google Cloud Vertex AI project.
Self-hosting removes the Omentir subscription, but Firebase/Google AI and Unipile can still cost money.
Quick start on localhost
Install Git and either Docker with Docker Compose, or Bun 1.3. Then clone and configure the project:
Open .env and fill in every uncommented blank value. Complete the provider setup below before starting the server.
Generate independent secrets with:
Use that (or a password manager) for at least:
LOCAL_SESSION_SECRET(required)LOCAL_APP_PASSWORD(required unless you explicitly allow open access — see Access control)CRON_SECRET(required unless automation is fully disabled)UNIPILE_WEBHOOK_SECRET(required for reply and relation webhooks)
For an initial setup with all automation disabled, leave CRON_SECRET blank and set AUTOMATION_DISABLED=true instead. Keep ENABLE_LIVE_AUTOMATION=false until dry-run output has been reviewed.
Run with Docker
Docker is the supported self-hosting path. Omentir runs on amd64 and arm64.
Open http://localhost:3000. Press Ctrl+C to exit the log view without stopping Omentir. Stop the server later with docker compose down.
Port binding: Compose publishes the app as 127.0.0.1:3000:3000 only. That means the container is reachable from the same machine (http://localhost:3000), not from other devices on your LAN or the public internet. This is intentional: a misconfigured or passwordless instance must not become reachable just because Docker started.
To expose the app on a real host (LAN/VPS):
- Put HTTPS reverse proxy (Caddy, nginx, Traefik, etc.) on the public interface.
- Proxy to
127.0.0.1:3000(or change the Compose bind only if you understand the risk). - Set
APP_BASE_URLto the exact public HTTPS origin (no trailing slash). - Keep a strong
LOCAL_APP_PASSWORD(do not enable open access on a public URL).
Run with Bun
For local development:
For a production-style local server:
Open http://localhost:3000. Sign in with LOCAL_APP_PASSWORD unless you opted into open access (see below).
Bun is the package manager and script runner, but bun run dev deliberately starts Next on Node rather than under bun --bun. In dev, Turbopack loads every package in serverExternalPackages (firebase-admin among them) through a hashed specifier such as firebase-admin-<hash>/firestore, which only resolves via a loader hook Next installs in Node. Bun's resolver does not run that hook, so bun --bun next dev fails on the first Firestore import with ResolveMessage: Cannot find module. Production is unaffected: built output emits plain requires, so build and start still run under Bun.
Access control (local login)
Self-host mode uses a single workspace and a signed, HTTP-only session cookie (omentir_local_session), not Clerk.
Additional login hardening that matters for operators:
- Origin check:
POST /api/local-auth/loginonly accepts requests whoseOriginmatchesAPP_BASE_URL. - Brute-force throttle: wrong passwords are rate-limited per source IP (in-process).
- Post-login redirects: the
?next=return path is sanitized so values like//evil.comcannot open-redirect the browser after sign-in. Only same-origin relative paths (starting with a single/) are allowed. - Cookie flags: session cookies are
HttpOnly,SameSite=Lax, andSecurewhenAPP_BASE_URLis HTTPS.
1. Provider setup
- Create a dedicated Firebase project. Enable Firestore and create a service account. Never reuse the hosted Omentir project.
- Deploy the required indexes with
firebase deploy --only firestore:indexes, or create the indexes from Firestore error links. The source isfirestore.indexes.json.- Also deploy
firebase deploy --only firestore:rules. Omentir reaches Firestore only through the server-side Admin SDK, so the shippedfirestore.rulesdenies all direct browser/client access. Keep it deployed — it stops anyone from reading or writing your data with a leaked project ID or web API key.
- Also deploy
- Create a Unipile account and obtain its DSN, API key, and webhook secret. Unipile is paid and LinkedIn can restrict automated accounts.
- Create a Gemini API key. For Vertex instead, set
GOOGLE_CLOUD_PROJECT,GOOGLE_CLOUD_LOCATION, andGOOGLE_APPLICATION_CREDENTIALS_JSON, enable Vertex AI, and grant the service account Vertex AI User.
2. Configure
Copy .env.example to .env. Required local settings are validated at server startup:
* Treat LOCAL_APP_PASSWORD as a secret even though it is typed by a human.
Generate secrets with a cryptographically secure password manager or openssl rand -base64 48. Placeholder strings such as replace-me are rejected at startup.
3. HTTPS and callbacks
http://localhost is supported for local browser use. Any LAN, VPS, tunnel, or internet deployment must use HTTPS. Put a reverse proxy such as Caddy or nginx in front of port 3000 (prefer proxying to the loopback bind above) and set APP_BASE_URL to the exact public origin. Do not expose port 3000 on 0.0.0.0 without TLS and a password.
Unipile connect and reply callbacks require a reachable HTTPS URL that matches APP_BASE_URL.
LinkedIn connect notify callback
When a user connects LinkedIn, Omentir registers a server-to-server notify URL with Unipile:
That endpoint requires a high-entropy, one-time connect token issued when the flow starts and consumed on success. It also verifies that the returned account exists in the configured Unipile account before saving it. Shared secrets are never placed in callback URLs.
Reply / relation webhooks use the separate Unipile webhook route and the same UNIPILE_WEBHOOK_SECRET (header x-omentir-webhook-secret).
4. Enable automation safely
Keep ENABLE_LIVE_AUTOMATION=false, connect LinkedIn, and inspect dry-run decisions in automationRuns. Only set it to true after the account, targeting, message drafts, and quotas are correct. AUTOMATION_DISABLED=true is the emergency stop and also permits omitting CRON_SECRET.
The process can run a built-in scheduler that calls GET /api/jobs/automation-tick with CRON_SECRET (header x-cron-secret or Authorization: Bearer …). Job secret comparison is constant-time. Do not put CRON_SECRET in browser-facing URLs or public logs.
Local mode never sends Omentir marketing, founder, contact-form, or mailing-list email. Operational notifications can use your own Resend account. Without it, outreach still works and notification sends are skipped.
The same repository powers omentir.com and self-hosted installs. Hosted product identity (support addresses, welcome From lines, public contact channels) lives in src/lib/hosted-identity.ts as intentional defaults for cloud mode. Those paths are gated off when RUN_LOCALLY=TRUE. Self-hosters configure only their own RESEND_FROM_EMAIL (optional).
Backups
The operator owns all data. Configure scheduled Firestore managed exports or Google Cloud backups, retain them outside the application project, and test restoration. Back up .env securely, never in Git.
Firestore will also receive operational documents under collections such as rateLimits (shared request ceilings across app processes). These are not customer CRM data; include them in backups or allow them to rebuild naturally after restore.
Upgrade and rollback
Install immutable release tags only:
Rollback by checking out the previous known-good tag and rebuilding. Read each release note for schema or operational changes. At launch, only the latest release tag receives security fixes.
Security defaults for self-hosters
This section documents protections that matter when you run Omentir yourself. Hosted omentir.com uses the same code paths where applicable, plus Clerk/Whop which local mode does not use.
What is locked down
Cost and abuse controls you should expect
Even as the only user on a self-hosted box, the app still enforces ceilings so a leaked agent token, a buggy integration, or a compromised browser session cannot unlimitedly call Gemini or Unipile:
- Website analysis (
POST /api/website-analysis): auth required; shared hourly rate limit. - Website preview (
POST /api/website-preview): auth required; shared hourly rate limit. - Onboarding lead preview (
POST /api/onboarding/lead-preview): auth required; shared hourly rate limit; body size capped. - Agent API (
/api/agent/v1/*including MCP): auth viaAuthorization: Bearer omentir_agent_…; shared per-minute rate limit; JSON bodies size-capped on write paths. - Surveys / Unipile webhooks / connect callback: rate limited; webhooks require a shared secret and connect callbacks require a consume-once token.
Website fetching for analysis still blocks private/reserved IPs (SSRF protections: DNS pin to validated public addresses, no credentialed URLs, redirect re-validation).
Multi-process / multi-container notes
If you run more than one Node process or replica against the same Firestore project:
- Shared rate limits use the
rateLimitscollection so quotas apply across processes. - Automation still relies on Firestore tick locks so only one automation tick advances work at a time.
- In-process maps (e.g. login attempt counters) are per process and reset on restart; treat them as soft protection, not the only control.
What self-host does not include
- Multi-user SaaS auth (Clerk), billing (Whop), or Omentir marketing email.
- Automatic public exposure of the app — you must deliberately put a reverse proxy in front and open firewall ports.
- Offline / air-gapped operation — Firebase, Unipile, and Gemini/Vertex remain required for full functionality.
Safety defaults (automation)
- Local mode uses signed, expiring sessions; password is required unless open access is explicitly enabled.
- Automation is dry-run unless
ENABLE_LIVE_AUTOMATION=true. AUTOMATION_DISABLED=trueprevents scheduler startup and manual tick execution.- Commercial plan caps are removed locally, but invite spacing, daily quotas, retry ceilings, and per-tick send budgets remain enforced.
- Verification must not send real outreach. Use dry-run output and
automationRuns.
Development
Runtime configuration is validated when the server starts, so builds and contributor CI do not need secrets.
Support
Use GitHub issues for reproducible defects in Omentir and feature proposals. Include the release tag, deployment method, sanitized logs, and reproduction steps.
Provider setup, billing, quotas, outages, and account restrictions belong to Firebase/Google Cloud, Unipile, LinkedIn, Gemini, or Resend support. The community may help, but the project cannot operate or debug third-party accounts for self-hosters.
Do not post secrets, customer data, access tokens, service-account JSON, or private LinkedIn messages.
License and trademark
MIT — see LICENSE. The Omentir name and logo are not granted by the software license; forks should rebrand rather than present themselves as Omentir or omentir.com.
Third-party notices: production dependencies are predominantly MIT, Apache-2.0, BSD, or ISC. Notable non-MIT production licenses: Apache-2.0 (Google GenAI, Firebase Admin, and related Google libraries), LGPL-3.0-or-later (@img/sharp-libvips-*, dynamically linked platform binary), MPL-2.0 OR Apache-2.0 (dompurify, dual-licensed), and CC-BY-4.0 (caniuse-lite, transitive data attribution). "private": true in package.json only means "do not publish this package to the npm registry," not that the source is closed. Blog and marketing images under public/ are project assets; forks that redistribute them should not imply affiliation with Omentir or omentir.com.
来源:README.md,提交 4ab5817
工具
0版本历史
1- v1.1.0最新Sep 28, 2026
