sw-agent-init
sw-agent-init
sw-agent-init
The sw-agent-init command creates new SignalWire agent projects with a
pre-configured directory structure, agent class, environment configuration,
test scaffolding, and optional virtual environment. It supports local,
AWS Lambda, Google Cloud Functions, and Azure Functions deployment targets.
Running without a project name enters interactive mode with guided prompts.
Project name. If omitted, sw-agent-init runs in interactive mode and prompts
for all configuration values.
Agent type. Valid values:
"basic" — Minimal agent with a single example tool, test scaffolding, and .env config"full" — All features: debug webhooks, post-prompt summary, web UI, basic auth, testsTarget deployment platform. Valid values:
"local" — Standard FastAPI/uvicorn server (default)"aws" — AWS Lambda with handler and SAM template"gcp" — Google Cloud Function with main.py entry point"azure" — Azure Function with function_app.py and host.jsonCloud region for serverless platforms. Defaults vary by platform:
us-east-1us-central1eastusSkip virtual environment creation. By default, a .venv directory is
created and dependencies are installed. Only applies to local platform.
Parent directory for the project. The project is created as a subdirectory of this path.
When run without arguments, sw-agent-init prompts for:
Features available in interactive mode:
The generated project auto-detects SignalWire credentials from environment variables:
If these are set when running sw-agent-init, they are written into the
generated .env file.