Installation
You’ll learn how to install Opswald and get your API key. Takes about 2 minutes.
Install the SDK
pip install opswaldnpm install opswaldGet Your API Key
- Sign up at app.opswald.com
- Go to Settings → API Keys
- Click Create Key and copy it
Initialize the SDK
import opswald
opswald.init( api_key='ops_your_key_here', base_url='https://api.opswald.com')import { init } from 'opswald';
init({ apiKey: 'ops_your_key_here', baseUrl: 'https://api.opswald.com'});Proxy Setup (Zero Code)
If you’d rather not add SDK calls to your code, use the Opswald proxy. Point your LLM provider’s base URL to the proxy and it captures traces automatically.
# Start the proxynpx opswald-proxy --port 4000 --api-key ops_your_key_here
# Point OpenAI to the proxyexport OPENAI_BASE_URL=http://localhost:4000/openai/v1All your existing OpenAI/Anthropic calls will now be traced without any code changes.
Next Steps
- Quick Start — Create your first trace in 5 minutes
- Proxy Configuration — Full proxy config reference