Data connectors for CortexDB — ingest from Slack, GitHub, GitLab, Jira, Linear, Confluence, Notion, PagerDuty, Discord, Teams, Google Workspace, Salesforce, HubSpot, Zendesk, Intercom, and ServiceNow into the v1 memory API.
Project description
cortexdb-connectors
Managed data connectors for CortexDB. Run them yourself, or let CortexDB host them for you on the Starter tier.
Each connector pulls from a third-party system (Slack, GitHub, Jira, …) and writes every event into CortexDB as a v1 experience.
Install
# core only — no third-party SDK dependencies
pip install cortexdb-connectors
# with one source's SDK
pip install 'cortexdb-connectors[slack]'
# everything
pip install 'cortexdb-connectors[all]'
Requires Python 3.10+.
Auth
The connectors talk to the CortexDB v1 API. Two things you need:
- A PASETO bearer token (
Authorization: Bearer …) - An actor id that matches the token's
subclaim (X-Cortex-Actor: …)
The fastest way to get both is to install cortexdb-cli and run cortexdb init — anonymous signup, no email or card, 7-day free-tier token. The connectors read ~/.cortexdb/state.json automatically.
Or set env vars:
export CORTEXDB_URL=https://api-v1.cortexdb.ai
export CORTEXDB_API_KEY=v4.public...
export CORTEXDB_ACTOR=user:u_019e...
export CORTEXDB_SCOPE_TEMPLATE='org:acme/source:{source}' # optional
{source} (and {tenant}, {namespace}, {actor}, {entity.<type>}) get filled in per event.
Run
# one shot
cortexdb-sync sync slack
# poll loop, 60s between cycles
cortexdb-sync watch slack --interval 60
# resume from a specific point
cortexdb-sync sync github --since 2026-05-01T00:00:00Z
# see what's available
cortexdb-sync list
# check resolved CortexDB creds
cortexdb-sync auth
# cursor state across every connector
cortexdb-sync status
Available connectors
slack SLACK_BOT_TOKEN
github GITHUB_TOKEN
gitlab GITLAB_TOKEN
jira JIRA_URL, JIRA_EMAIL, JIRA_API_TOKEN
linear LINEAR_API_KEY
confluence CONFLUENCE_URL, CONFLUENCE_EMAIL, CONFLUENCE_API_TOKEN
notion NOTION_TOKEN
pagerduty PAGERDUTY_API_KEY
discord DISCORD_BOT_TOKEN
teams TEAMS_TENANT_ID, TEAMS_CLIENT_ID, TEAMS_CLIENT_SECRET
google-workspace GW_SERVICE_ACCOUNT_KEY, GW_DELEGATED_USER
salesforce SF_INSTANCE_URL, SF_CLIENT_ID, SF_CLIENT_SECRET, SF_USERNAME, SF_PASSWORD
hubspot HUBSPOT_TOKEN
zendesk ZENDESK_SUBDOMAIN, ZENDESK_EMAIL, ZENDESK_TOKEN
intercom INTERCOM_TOKEN
servicenow SNOW_INSTANCE, SNOW_USERNAME, SNOW_PASSWORD
Per-connector setup pages live at https://cortexdb.ai/docs/connectors/ (e.g. Slack).
YAML config
If env vars get unwieldy, drop a cortexdb-connectors.yaml next to your sync invocation:
slack:
slack_bot_token: xoxb-...
channels: [C01ABCDEF, C02GHIJKL]
github:
github_token: ghp_...
repos: [acme/api, acme/web]
events: [pull_request, issue_comment]
Programmatic use
Skip the CLI entirely:
import asyncio
from cortexdb_connectors.slack import SlackConnector
connector = SlackConnector(
cortex_url="https://api-v1.cortexdb.ai",
cortex_api_key="v4.public...",
actor="user:u_019e...",
scope_template="org:acme/source:slack/channel:{entity.channel}",
slack_bot_token="xoxb-...",
channels=["C01ABC", "C02DEF"],
)
result = asyncio.run(connector.sync())
print(result.episodes_ingested, "ingested,", len(result.errors), "errors")
Webhooks
The cortexdb-connectors[webhooks] extra ships a Starlette-based webhook receiver for sources that push (Slack Events API, GitHub Apps, Jira webhooks, …) instead of polling. See cortexdb_connectors/webhooks.py.
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cortexdb_connectors-0.2.1.tar.gz.
File metadata
- Download URL: cortexdb_connectors-0.2.1.tar.gz
- Upload date:
- Size: 95.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b952299d80f7cdba82cf8d84d0ee4c1fdb3199e91c2f0dfced98504bbfa1397a
|
|
| MD5 |
dde610e5a520135895fb25c91b83cbce
|
|
| BLAKE2b-256 |
478c472eb6e6accec116c2945f51fb4ba27d69b5c32676189148dd1f22a65b2d
|
File details
Details for the file cortexdb_connectors-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cortexdb_connectors-0.2.1-py3-none-any.whl
- Upload date:
- Size: 109.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50c62587189ceb26af51de4732b342695c8885a666e2360ac10dc55bc2124030
|
|
| MD5 |
9cdbc37eb7f22ed3699d68cf1714bf8d
|
|
| BLAKE2b-256 |
ce4f66888ac0122308a2e5b8000389bc44ecb4a17e088788cae68ff538a22e5f
|