Install
Optional Dependencies
Install extras for framework auto-tracking:Requirements
- Python 3.9+
- An API key from app.meshai.dev
Configuration
The SDK can be configured via constructor arguments, environment variables, or a combination of both.Environment Variables
| Variable | Description | Required |
|---|---|---|
MESHAI_API_KEY | Your API key (msh_...) | Yes (if not passed to constructor) |
MESHAI_BASE_URL | API base URL | No (default: https://api.meshai.dev) |
MESHAI_AGENT_NAME | Default agent name | No |
MESHAI_ENVIRONMENT | Agent environment (production, staging, dev) | No (default: production) |
MESHAI_HEARTBEAT_INTERVAL | Heartbeat interval in seconds | No (default: 30) |
MESHAI_TIMEOUT | HTTP request timeout in seconds | No (default: 10) |

