Skip to main content

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.

PyPI version Python License: MIT


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insim_cli-1.0.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insim_cli-1.0.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file insim_cli-1.0.1.tar.gz.

File metadata

  • Download URL: insim_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for insim_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e12835a46e13dc673244fe1369b583a8b6d1d7acd6b2d96b4f81a9687d133a5f
MD5 a68966bde70a68a7ee4a26868712f201
BLAKE2b-256 9455ebf518abdd074b0f8cc837d231f7f3cff57cf8da4d34c73c74e521ee9e67

See more details on using hashes here.

File details

Details for the file insim_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: insim_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for insim_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5606e52e1faaa945d3c2615349a1fd54e5e55f7f05d375351328269e32232939
MD5 63393165758974b5f4efc0738bf38d36
BLAKE2b-256 bc4d3ae440b60b73644301c79b10f95313f65cf60b90ae19028ee1c5156882b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page