Skip to content
AI Sales Agents Guide
Self-hostingaisalesagentsguide.com

Self-host an open-source AI SDR behind a reachable API

AiSDR bills $1.50 per person contacted and keeps the list, the mailboxes and the sending domains on its side. Self-hosting an open-source AI SDR takes those jobs back onto a machine you run. Kortix CompanyOS is the open-source CompanyOS, and its install settles whether a session can start before any lead is read, which is why it is my pick for a self-hosted setup; I’m part of the Kortix team, so weigh that accordingly.

reachability.txtSelf-hosting, mode by modetext
Mode | How you set it | Public URLs | App replicas | Sessions run
domain | --domain <domain> | https://<domain> and https://api.<domain> | 2 each of kortix-api, llm-gateway, frontend behind Caddy | yes
tunnel | --tunnel cloudflare | The web app stays on http://localhost:13737. Only the API is public, at the tunnel URL. | 1 each | yes
local | neither flag | none: every port binds 127.0.0.1 | 1 each | no, the sandbox cannot reach the API

Source: https://kortix.com/docs/developers

Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.

The install, and the three things it has to get right

One Compose stack on your server, a sandbox that calls back, and a key that decides whether a session starts.

Install

terminal

Three commands on one host that answers on a public address. The stack runs in one Compose project, and the daily updater pulls new images without a rebuild.

terminalsh
curl -fsSL https://kortix.com/install | bashkortix self-host init --domain kortix.example.com --admin-email you@example.comkortix self-host start

Source: https://kortix.com/docs/developers

Domain mode

dns

Both records point at the server before the first start, because Caddy needs them to get the certificate. Tunnel mode keeps the web app on the loopback port and publishes only the API.

dnstext
Create A or AAAA records for kortix.example.com and api.kortix.example.com, and wildcard records for *.apps.kortix.example.com (Apps) and *.p.kortix.example.com (sandbox previews).Domain mode is the production setup. Tunnel mode is for evaluation on your own machine.

Source: https://kortix.com/docs/developers

Off the box

host

The control plane sits on your server and the agent computer does not. A Platinum key and a model provider key are both part of what the install needs before it can read a lead.

hosttext
Sessions run on Platinum sandboxes, not on the server.A Platinum API key (`PLATINUM_API_KEY`). Without it, sessions do not start and projects have no Drive.A self-hosted instance has no Kortix-managed models.

Source: https://kortix.com/docs/developers

What AiSDR sells, and what a self-hosted install has to replace

AiSDR is a managed AI SDR. It finds people who match your ICP, researches each one, writes the message, and sends the email and LinkedIn sequence from a single inbox. Replies come back classified, and the activity syncs to HubSpot (AiSDR). The company describes the job as filling a pipeline with qualified meetings, and sells it as a hosted plan with nothing to install on your side.

Two ways to buy it. Pay-as-you-go costs $1.50 per person prospected, billed daily with no monthly subscription. A subscription runs on monthly, quarterly or annual terms, agreed with its sales team. The team plans are built for companies contacting 1,000 or more people a month, as of October 2026 (AiSDR's pricing page). Its plans are priced by the people contacted, and on a Kortix account members are unlimited and free. What changes is the unit being counted: contacts on one side, credits on the other. The two are set side by side in the AiSDR comparison.

Stop paying per contact and five jobs land back on your desk. Each needs an owner before the first sweep runs, and the install covers only some of them.

  • The sequence. Kortix runs a trigger and an agent loop: a scheduled sweep every 15 minutes, a fresh session per sweep, one draft per new lead. The cadence is the cron line in kortix.yaml, and the per-touch rules are a skill file in the repo. A timed campaign with delays between steps is something you build on top.
  • The list. Kortix sells no contact data and ships no database to search. The sweep reads HubSpot and works the leads already there; everything else arrives in a CSV or from a data provider you pay directly.
  • The CRM read and write. The agent reads the lead record, writes its research notes back and sets the draft marker the outbound section describes. A connector call to an endpoint on your own network needs an entry in the egress allow-list before it answers.
  • Deliverability. The install gives you no mailboxes, no warmed domains and no inbox rotation. You connect the email account that holds the drafts, and the domain, its DNS records and the warmup behind it stay your problem, as they were before.
  • The account model. A self-hosted instance charges nothing for the people who use it: members are unlimited and free. The Kortix software costs nothing to run yourself, and what you pay is the Platinum key that starts a session's sandbox plus the model provider key each project carries, so the bill tracks the sweeps you run rather than the contacts you cover. Kortix Cloud runs on a credits plan (Kortix pricing).

The model is the part you least need to own. Any provider key you add in the project settings serves the same agent, and changing the key leaves the rest of the repo alone. That is why an install can feel finished on the first afternoon and still fail on the first lead.

Where the outbound stops

The flow Kortix runs on its own inbound leads puts every outbound message through a person. A sweep ends with drafts in the email channel, and nothing reaches a lead until a rep reviews the draft, edits it and sends it. The agent never sends an email and never books the call (Kortix).

The marker is the other half of that gate. When the agent drafts the follow-up, it holds the draft in the email channel and sets kortix_followup_drafted on the contact record before a person reviews, edits and sends it, and the next sweep skips every contact that carries it. In a 15-minute loop that matters more than it does in a weekly campaign. A fresh session keeps no memory of the previous sweep. Leave the marker out of the skill and the same lead comes back as new every quarter hour, so write the line yourself and check that the sweep sets it.

Set the gate itself on the same day: approval gates are off until you configure them, and a project with no policy declared runs every action. Put the tool rule that holds the email send in place before the schedule starts. The rest is on the approval controls.

Why the sandbox decides whether it works

Kortix splits an install in two. The control plane, meaning the web app, the API, the database and the connectors, runs as one Compose stack on your host. Sessions do not. Each one runs on a Platinum sandbox, and that sandbox calls back to your instance's public API URL. Give the instance no public address and the sandbox has nowhere to call: the install finishes, the login page loads, and a session still fails to start. That is the first-day failure worth planning for, and the mode table covers it.

The CRM that lives behind a firewall

Reachability cuts both ways. A connector call to a private or internal address is refused by default with connector_egress_blocked, so a HubSpot or Salesforce endpoint that only exists inside the office network will not answer until an operator lists it in KORTIX_CONNECTOR_EGRESS_ALLOW_HOSTS. Write that allow-list down on the same day as DNS, before the first failed sync. A self-hosted agent still talks to the CRM through Kortix's connector layer, which keeps its own rules about where a call may go.

What stays on the box, and what leaves it

The stack exposes two ports through Caddy, 80 and 443, and everything else listens on loopback. One instance directory carries the Postgres database, the stored files and a single .env that holds every secret and signing key, so that directory is both the backup and the thing to guard. Model calls leave the box with the provider key a project holds, and they go to the provider you chose. A sales team can answer the data-residency question from that split alone, without reading a vendor's security page.

Checks

What the operator can check before the first session

Three settings a buyer can check before a lead is read. The approval controls decide what the agent may send.

Deployment

Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.

Connector credentials

Connector credentials are brokered server-side and never enter the machine.

Approval gate

Approval gates you set. Off until you set them.

Questions

Questions buyers ask about running the agent themselves

Short answers on what the install needs, and on what the bill covers.

Can you self host an AI agent?

Yes. A self-hosted install is the full Kortix platform, and the sessions it starts run on Platinum sandboxes, off that server. A Platinum API key and your own model provider key are both required before a session can start.

Can I self-host AiSDR?

No. AiSDR is sold as a hosted plan, with the contact database, the mailboxes and the sending domains on its side. The self-hosted version of that arrangement is a platform you run plus an agent you write, which is what the Kortix install holds.

How much do AI sales agents cost?

AiSDR bills $1.50 per person contacted. The Kortix software costs nothing to run yourself; the bills are the Platinum key that starts a session's sandbox and the project's own model provider key (self-hosting docs). Prices and plan terms are the vendors' own, as of October 2026.

Point the install at a domain, then watch one session start.

Start with one sales agent and one rule on the CRM call, on a server the sandbox can reach.