inSIM CLI — Control your SMS, contacts and campaigns from the command line. Built for AI agents and humans alike.
Project description
insim-cli
Control your SMS, contacts, and campaigns from the command line.
Why insim-cli?
Stop switching between tabs. Manage your entire SMS business from your terminal.
- Send SMS in seconds — one command, done. No login pages, no clicks.
- AI-ready — Claude, GPT, Gemini, and any LLM can pilot inSIM with structured JSON output.
- Automate your campaigns — create lists, compose messages, and launch campaigns programmatically.
- Track everything — call logs, delivery reports, click tracking, all at your fingertips.
- Works everywhere — macOS, Linux, Windows. Any terminal. Any automation tool.
Quick Start (2 minutes)
1. Install
pip install insim-cli
2. Login
insim login your@email.com --key YOUR_ACCESS_KEY
Your access key is in your inSIM account settings, under API.
3. Start using
# Find a contact
insim contacts search "John Doe"
# Send an SMS
insim sms send "+33612345678" "Hello from the command line!"
# Check your stats
insim stats overview
That's it. You're ready.
What can you do?
Send SMS
# Simple message
insim sms send "+33612345678" "Meeting confirmed for tomorrow at 10am"
# With link tracking
insim sms send "+33612345678" "Check our offer: [link]" --url "https://your-site.com/promo"
Manage Contacts
# Smart search (handles typos, inversions, accents)
insim contacts search "cecile dubois"
# Find by phone number
insim contacts find-phone "0612345678"
# Tag contacts for segmentation
insim contacts tags-add CONTACT_ID vip premium
Launch Campaigns
# Create a list with all your contacts
insim lists create "Spring Promo"
insim lists add-all LIST_ID
# Create and launch a campaign
insim campaigns create --name "Spring Promo" --message "20% off this week!" --list LIST_ID
insim campaigns start CAMPAIGN_ID
Track Calls
# See missed calls
insim calls list --type missed
# Qualify a call
insim calls qualify CALL_ID --option OPTION_ID --notes "Interested in premium plan"
View Statistics
# Global overview
insim stats overview
# SMS sent this month
insim stats overview --from "2026-04-01"
For AI Agents
insim-cli is designed to be used by AI coding agents like Claude Code, GitHub Copilot, Cursor, and others.
Setup for agents
export INSIM_LOGIN="your@email.com"
export INSIM_ACCESS_KEY="your_access_key"
JSON output
Add --json to any command for machine-readable output:
insim --json contacts search "john doe"
insim --json sms list --limit 5
insim --json account info
AI workflow example
An agent receiving "send a message to John saying meeting is confirmed":
# Step 1: Find the contact
insim --json contacts search "john"
# → {"contacts": [{"phone_number": "+33612345678", "score": 100}]}
# Step 2: Send the SMS
insim sms send "+33612345678" "Meeting is confirmed"
# → SMS sent successfully!
SKILL.md
The package includes a comprehensive SKILL.md file with 25 detailed workflows that any AI agent can read to understand exactly how to use every feature of insim-cli. The REPL mode displays the path to this file on startup.
Interactive Mode (REPL)
Run insim without arguments for an interactive session with auto-completion and command history:
$ insim
SKILL.md: /path/to/skills/SKILL.md
inSIM CLI — Interactive Mode
Type commands without 'insim' prefix. Type 'help' or 'exit'.
insim> contacts search "mourad"
insim> sms send "+33664456336" "Hello!"
insim> stats overview
insim> exit
All Commands
| Group | Commands |
|---|---|
| Auth | login, logout, whoami |
| Contacts | list, search, find-phone, detail, switch-pro, delete, tags-add, tags-remove, custom-fields |
| SMS | list, detail, conversation, send |
| Calls | list, qualify, clictocall |
| Qualifications | list, options, options-create, options-update, options-delete, stats |
| Account | info, webhooks-set |
| Lists | list, create, detail, update, delete, add-contacts, remove-contacts, add-all |
| Campaigns | list, create, detail, cancel, start |
| Templates | list, create, update, delete, send |
| Stats | overview, clicks |
Run insim COMMAND --help for details on any command.
Configuration
| Method | Priority | Description |
|---|---|---|
| Environment variables | Highest | INSIM_LOGIN, INSIM_ACCESS_KEY |
| Credentials file | Lower | ~/.insim/credentials.json (created by insim login) |
Custom server URL:
export INSIM_BASE_URL="https://custom-server.com"
Development
git clone https://github.com/ArdaryinSIM/insim-cli.git
cd insim-cli
pip install -e ".[dev]"
pytest tests/ -v
About inSIM
inSIM is a SaaS platform for SMS management, CRM, and marketing campaigns. It connects to your phone via a mobile app and lets you send, receive, and track SMS from your computer.
insim-cli is the official command-line interface, built by Reach Technologies SAS.
License
MIT
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 insim_cli-1.0.0.tar.gz.
File metadata
- Download URL: insim_cli-1.0.0.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71e1c2991019069138dc36db661cbba45d65b7d7f49c897e781928e008210370
|
|
| MD5 |
97ec3ab3c74259bc5180982772ecb902
|
|
| BLAKE2b-256 |
9f6dbcd30956e720f1418d6de3151f21ee6ca7a9246541bd500a03fb508f33e8
|
File details
Details for the file insim_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: insim_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d38c260f8474ad101862707d73f908268f5a979f128a3aa466f6e93d02864f
|
|
| MD5 |
e7ea736d1aefe380013772f893395bf5
|
|
| BLAKE2b-256 |
89c800561b35bf9850708f9d740d7a2d12e78b15daf214999921ed2230eafc5f
|