A CrewAI crew with a verification specialist agent that provisions real carrier-grade phone numbers, waits for OTP codes, and releases numbers — all using the agentsim-sdk Python package.
- The CrewAI agent provisions a real T-Mobile number via AgentSIM
- The number passes carrier lookup (
line_type: mobile) — no VoIP blocking - The agent waits for an SMS OTP to arrive
- After verification, the number is released back to the pool
- The SDK context manager handles cleanup automatically
pip install crewai agentsim-sdkexport AGENTSIM_API_KEY="asm_live_..."
export OPENAI_API_KEY="sk-..." # Required for CrewAI LLM calls# Standalone SDK demo (no LLM needed)
python crewai_verify.py
# Full CrewAI crew (requires OPENAI_API_KEY)
# Uncomment the main() call in crewai_verify.py- Uses
agentsim.provision()async context manager (not raw HTTP) @tooldecorator fromcrewai.toolsfor LLM-callable tools- Auto-release on context manager exit — no leaked numbers
OtpTimeoutErrorsessions are not billed