Python Installation
Install and configure the Noukai Python SDK.
Get an API key
Visit Noukai Console to create an API key starting with nk_.
Configure authentication and defaults
Set the API key as an environment variable:
Optionally set your default org and project to simplify flow references:
Or pass them directly to the client:
Verify installation
Run a quick test:
If you see output, you're ready to go! (Or use the fully-qualified form client.flow("acme/spelling/grade-3") if you prefer.)
Advanced configuration
Local development
For local development, use env="dev" to connect to http://localhost:8080/api/v1:
Or set the environment variable:
The env parameter accepts:
"dev"or"development"→http://localhost:8080/api/v1"production"(default) →https://api.noukai.xyz/api/v1- Other values use the production default
URL targeting
The SDK targets Noukai's hosted endpoints (api.noukai.xyz for production, localhost:8080 for env="dev"). There is no way to point the SDK at a custom URL — this is a deliberate constraint to prevent accidental misrouting.
The only user-facing way to switch URL targets is the env option (or NOUKAI_ENV env var).
Timeouts and retries
Customize request timeouts and retry behavior:
Logging
Enable debug logging:
Next steps
- Quickstart — Run your first flow
- Guides — Learn key patterns
- API Reference — Class and method signatures
Using FastAPI or async contexts? Use AsyncNoukai instead. See Async vs Sync.