Available on the Enterprise plan. Contact sales to learn more.
Install an SDK
- Python
- TypeScript
- Go
Install the Import the high-level SDK from
gitpod-sdk package:ona_sdk. Python 3.10 or later is required.Authenticate the SDK
Create a personal access token, then setONA_API_KEY:
ONA_API_KEY when you use create_client_from_env, createClientFromEnv, or sdk.NewFromEnv.
The default API URL is https://app.ona.com/api. If your organization uses a custom management-plane domain, also set:
create_client(api_key=..., base_url=...), and TypeScript applications can use createClient({ apiKey, baseUrl }). Do not commit tokens to source control.
Create an environment and run a command
Each high-level client creates a running environment from a repository URL and returns an environment handle. The handle provides command, file, Git, and agent operations.- Python
- TypeScript
- Go
Choose high-level workflows or direct API clients
Use the high-level SDK for environment and Codex workflows. It handles tasks such as resolving repository context, selecting an environment class, waiting for state changes, connecting to environment operations, and mapping common failures to typed errors. Use the generated clients when the high-level SDK does not cover an API operation:- Python: protobuf messages are under
gitpod.v1, and authenticated synchronous service clients are available fromona.services. - TypeScript: core service clients are available from
ona.services. Generated protobuf schemas and service descriptors are exported from subpaths such as@gitpod/sdk/gitpod/v1/environment_pb. - Go: protobuf messages are in
github.com/gitpod-io/gitpod-sdk-go/v1, and generated Connect clients are ingithub.com/gitpod-io/gitpod-sdk-go/v1/v1connect.
Run the full examples
The published SDK packages include runnable examples for environment operations and Codex agents:- Python package files: download the source distribution and open
examples/. - TypeScript package examples
- Go module source: open
sdk/examples/.
Troubleshooting
The SDK reports that ONA_API_KEY is required
The SDK reports that ONA_API_KEY is required
Set
ONA_API_KEY in the process that starts your application. SDK versions 1.x prefer ONA_API_KEY; GITPOD_API_KEY is supported as a compatibility fallback.Requests fail when using a custom domain
Requests fail when using a custom domain
Set
ONA_BASE_URL to your custom management-plane origin followed by /api, for example https://ona.example.com/api. Do not use the vscode. subdomain.