Your SalesNexus AI agent lets an AI assistant work directly in your SalesNexus CRM — looking up contacts, exporting lists, and pulling campaign stats from plain-English prompts. This guide walks you through getting your API key, installing the snx CLI, and running your first prompts. If you get stuck, the SalesNexus help center has more setup help.
A beginner’s guide to connecting an AI assistant to your CRM and putting it to work — no coding required.

② Install & Connect
③ Example Prompts
Tips & Tricks
Troubleshooting
Quick Reference
Get Your SalesNexus API Key
An API key is like a secure password that lets your AI agent talk directly to your SalesNexus account. Here’s how to find yours:
- Log in to your SalesNexus account at app-beta.salesnex.us
- Click Settings in the navigation menu
- Go to the API Keys section
- Click Generate New Key (or copy an existing one)
- Your key will look like this:
sn_live_AbCdEfGh.01234567890123456789012345678901
Treat your API key like a password. Don’t share it in emails, group chats, or documents. Anyone with this key can access your CRM data. If you ever think a key has been exposed, delete it and generate a new one.
Your account lives on the SalesNexus Beta platform (
api-beta.salesnex.us), which has the latest features. Your beta API key is specific to this environment — it will not work on production. Throughout this guide, all commands use the beta URL.Install the CLI, Connect Your Key & Configure Your Agent
Follow the instructions below for your operating system. The steps are the same in concept — install the snx CLI, save your API key, and point everything at the beta environment — but the exact commands differ per platform.
🪟 Windows — PowerShell
Step 2 — Install the SalesNexus CLI
Open PowerShell (search “PowerShell” in the Start menu) and run:
# Install the snx CLI
pip install salesnexus-cli
Confirm the installation worked:
snx --version
# Expected: snx 0.1.1
Your Python Scripts folder may not be on your PATH. Run this in PowerShell to fix it:
$env:PATH += ";$env:APPDATA\Python\Python312\Scripts"Then try snx --version again. For a permanent fix, restart PowerShell after pip install.Step 3 — Save Your API Key & Point to Beta
Run these two commands in PowerShell, replacing sn_live_YOUR_KEY_HERE with your actual key from Step 1. This stores the key permanently in your Windows user environment so it’s available in every session.
# Store your API key (permanent — only needs to be done once)
[Environment]::SetEnvironmentVariable(
'SALESNEXUS_API_KEY',
'sn_live_YOUR_KEY_HERE',
'User'
)
# Point to the beta API
[Environment]::SetEnvironmentVariable(
'SALESNEXUS_BASE_URL',
'https://api-beta.salesnex.us',
'User'
)
Then save the credentials directly into the CLI profile:
snx auth login `
--api-key sn_live_YOUR_KEY_HERE `
--profile beta `
--base-url https://api-beta.salesnex.us
snx auth switch beta
Step 4 — Verify the Connection
snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
Your AI agent can now run
snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”Giving Your API Key to the Agent (Windows)
Because you stored the key as a Windows User environment variable, Claude Code and most AI agents will pick it up automatically. If your agent can’t find it, paste this at the start of a new chat:
# Paste in the agent's terminal or chat window
$env:SALESNEXUS_API_KEY = [Environment]::GetEnvironmentVariable("SALESNEXUS_API_KEY", "User")
$env:SALESNEXUS_BASE_URL = [Environment]::GetEnvironmentVariable("SALESNEXUS_BASE_URL", "User")
Or simply tell the agent in chat: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”
🍎 macOS — Terminal / Zsh
Step 2 — Install the SalesNexus CLI
Open Terminal (find it in Applications → Utilities, or search with Spotlight ⌘+Space) and run:
Check by running
python3 --version in Terminal. If you get a “command not found” error, download Python 3.10+ from python.org or install it with Homebrew: brew install python3# Install the snx CLI
pip3 install salesnexus-cli
Confirm the installation worked:
snx --version
# Expected: snx 0.1.1
Your local bin folder may not be on your PATH. Run this to fix it:
export PATH="$HOME/.local/bin:$PATH"To make it permanent, add that line to your ~/.zshrc file, then run source ~/.zshrc.Step 3 — Save Your API Key & Point to Beta
Add these lines to your shell profile file so the key is available every time you open a terminal. Open Terminal and run:
# Add to ~/.zshrc (the default shell on modern Macs)
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.zshrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.zshrc
# Apply the changes immediately
source ~/.zshrc
Then save the credentials into the CLI profile:
snx auth login \
--api-key sn_live_YOUR_KEY_HERE \
--profile beta \
--base-url https://api-beta.salesnex.us
snx auth switch beta
Step 4 — Verify the Connection
snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
Your AI agent can now run
snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”Giving Your API Key to the Agent (macOS)
Because you added the key to ~/.zshrc, any terminal-based AI agent (like Claude Code) will inherit it automatically when launched from your terminal. If it doesn’t pick it up, paste this at the start of a chat:
# Set for the current session if not inherited
export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"
export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"
Or tell the agent: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”
🐧 Linux — Bash / Zsh
Step 2 — Install the SalesNexus CLI
Open a terminal and run:
Check with
python3 --version. To install on Ubuntu/Debian: sudo apt install python3 python3-pip. On Fedora/RHEL: sudo dnf install python3 python3-pip.# Install the snx CLI (--user keeps it in your home directory)
pip3 install --user salesnexus-cli
Confirm the installation worked:
snx --version
# Expected: snx 0.1.1
Add
~/.local/bin to your PATH:export PATH="$HOME/.local/bin:$PATH"To make it permanent, add that line to your ~/.bashrc or ~/.zshrc, then run source ~/.bashrc.Step 3 — Save Your API Key & Point to Beta
Add your credentials to your shell profile so they’re available in every terminal session:
# For bash users — add to ~/.bashrc
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.bashrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.bashrc
source ~/.bashrc
# For zsh users — add to ~/.zshrc instead
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.zshrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.zshrc
source ~/.zshrc
Then save the credentials into the CLI profile:
snx auth login \
--api-key sn_live_YOUR_KEY_HERE \
--profile beta \
--base-url https://api-beta.salesnex.us
snx auth switch beta
Step 4 — Verify the Connection
snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
Your AI agent can now run
snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”Giving Your API Key to the Agent (Linux)
Any terminal-based AI agent launched from your terminal will inherit the environment variables you added to your shell profile. If your agent runs in an isolated sandbox, provide the key directly:
# Set for the current session if not inherited
export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"
export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"
Or tell the agent: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”
Example Prompts for Your AI Agent
These are real things you can say to your AI agent. Just copy, paste, and adjust the details to fit your data. Start every session with a connection check.
❝ I have a list of new leads I’d like to add to SalesNexus. Here they are:
1. John Smith, john@example.com, Acme Inc, CEO
2. Lisa Ray, lisa@widgets.com, Widgets Co, Sales Director
3. Tom Chu, tom@bigbrand.com, Big Brand LLC, Founder
Please create a contact record for each one and tag them with lead_source=”Trade Show”.
❝ I need to set up three email templates for a nurture sequence:
1. “Day 1 – Welcome” (triggered) — an introduction email
2. “Day 3 – Case Study” (triggered) — sharing a customer success story
3. “Day 7 – Demo Invite” (triggered) — inviting them to schedule a demo
Please create all three as draft templates.
Tips for Working with Your AI Agent
Verify the connection first
Start every session by asking: “Run snx ping to confirm you’re connected to my SalesNexus account.” It takes two seconds and prevents a session full of errors.
The agent asks before changing anything
Your agent is configured to confirm any action that creates, updates, or deletes data. You’ll always see exactly what it plans to do before it acts.
Listing is always safe
Asking the agent to “list”, “search”, or “show” data never modifies anything. Feel free to explore freely.
Be specific with IDs
If you know a contact ID, pipeline ID, or template ID, include it. If you don’t, ask the agent to search first, then act on the results.
Chain your requests
You can combine steps: “Search for all contacts at Acme Corp, then add a note to each one saying we met them at the trade show.”
Never paste your key publicly
Only share your API key with AI tools from trusted providers. Never paste it into a public chat, forum post, or shared document.
Troubleshooting
| Problem | Solution |
|---|---|
| snx: command not found | Make sure the Python Scripts directory is on your PATH (see Step 2 for your platform), then restart your terminal and try again. |
| Invalid or expired API key | Re-run the snx auth login command with your correct key and confirm you’re using the beta URL: https://api-beta.salesnex.us. |
| Connected but no data shows | Confirm you’re using a beta API key, not a production key. Keys are environment-specific and will not cross environments. |
| Agent says it can’t find snx | Make sure the CLI is installed (snx --version works in your terminal) and that the SALESNEXUS_API_KEY environment variable is set for the session the agent is running in. |
| pip install fails | Try pip3 install salesnexus-cli (Mac/Linux) or run PowerShell as Administrator (Windows). Make sure Python 3.10+ is installed. |
Quick Reference — What to Say to Your Agent
| What you want | Say to your agent |
|---|---|
| Check connection | "Run snx ping" |
| Find a contact | "Search contacts for [name or company]" |
| Add one contact | "Create a contact for [name, email, company]" |
| Load a list | "Add these contacts to SalesNexus: [paste list]" |
| See your pipelines | "List all my goals and pipelines" |
| Build a pipeline | "Create a goal called [name] with these stages: [stages]" |
| Move a deal | "Move opportunity [ID] to the [stage name] stage" |
| See email templates | "List all email templates" |
| Create a template | "Create a triggered email template called [name]" |
| Add a follow-up task | "Create a follow-up task for contact [name/ID]" |
| Add a note | "Add a note to contact [ID]: [your note text]" |
| Export contacts | "Export all contacts to CSV" |
| Campaign stats | "Show me open and click rates for template [name/ID]" |