Skip to content

agentsimdev/agentsim-examples

Repository files navigation

AgentSIM Examples

AgentSIM SDK License: MIT GitHub

Production-ready examples for AI agents that need phone verification with real carrier-grade mobile numbers.

Quick Start

git clone https://github.com/agentsimdev/agentsim-examples
cd agentsim-examples
pip install -r requirements.txt
export AGENTSIM_API_KEY="asm_live_..."

Framework Integrations

These examples show how to integrate AgentSIM with popular AI agent frameworks. Each uses the agentsim-sdk Python package — no raw HTTP calls needed.

A CrewAI crew with a phone verification specialist agent.

  • Uses @tool decorator from crewai.tools
  • Provisions real T-Mobile numbers via agentsim.provision() context manager
  • Agent handles the full provision -> OTP -> release lifecycle

A LangGraph ReAct agent for phone verification.

  • Uses create_react_agent from langgraph.prebuilt
  • @tool from langchain_core.tools wraps async AgentSIM SDK calls
  • Automatic agent-tool-agent loop handles the verification flow

A Browser Use agent that automates signup with phone verification.

  • Uses Tools() container with @tools.action() decorator
  • Navigates to a signup page, provisions a number, fills the form, enters the OTP
  • Returns ActionResult with include_in_memory=True for multi-step flows

Real-World Examples

Create and manage multiple Instagram accounts for social media agencies.

  • Bypasses "suspicious activity" phone verification
  • Handles account recovery flows
  • Manages multiple client accounts

Scale B2B outreach with verified LinkedIn accounts.

  • Creates Sales Navigator accounts
  • Gets "trusted" status with phone verification
  • Rotates accounts to avoid rate limits

Track competitor pricing on phone-gated sites.

  • Creates buyer accounts on Shopify stores
  • Accesses wholesaler portals
  • Monitors inventory changes

Automate customer support via WhatsApp.

  • Registers WhatsApp Business accounts
  • Handles number verification flow
  • Scales to multiple support numbers

Extract data from phone-verified marketplaces.

  • Creates verified buyer accounts
  • Accesses seller-only data
  • Rotates identities safely

Test your own signup flows at scale.

  • Verifies SMS delivery works
  • Tests onboarding flows
  • Load tests verification systems

Why AgentSIM

AgentSIM provides real T-Mobile SIM cards, not VoIP. Numbers pass carrier lookup as line_type: mobile, which means they work where Twilio/VoIP numbers get blocked.

import agentsim

agentsim.configure(api_key="asm_live_...")

async with agentsim.provision(agent_id="my-bot", country="US") as num:
    print(num.number)       # Real E.164 number like +14155552671
    otp = await num.wait_for_otp(timeout=60)
    print(otp.otp_code)     # "391847"
# Auto-released on exit
Metric Value
Provisioning time ~212ms
OTP arrival ~3.5s average
Cost per session $0.99 (Builder plan)
Free sessions 10/month (Hobby plan)
OTP timeout sessions Not billed

Documentation

Support

License

MIT - Use these examples in your projects!

About

Production-ready examples for AI agents that need phone verification. Real SIM numbers, not VoIP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages