Godo is a Go package for DigitalOcean's V2 REST API. It exposes typed services for droplets, Kubernetes, databases, inference, and other control-plane resources.
Overview
Godo wraps the DigitalOcean V2 HTTP API for Go programs. You construct a client with an API token and call service objects to manage infrastructure and newer AI-related endpoints from the same library.
Authentication uses personal access tokens from the DigitalOcean control panel. Inference and chat completion APIs may require a full-access token or a model access key, while limited-scope tokens can still reach traditional infrastructure APIs. The client supports optional retry configuration with exponential backoff for rate limiting and 500-level errors via go-retryablehttp.
Recent releases add first-class serverless inference support, including chat completions with streaming, image generation, embeddings, batch inference, and model listing. An Action Gateway surface covers tools, MCP servers, sessions, and related control-plane resources when the token has the right scopes. Pagination is handled per endpoint, either by page number or continuation tokens.
Install via Go modules with a versioned import path, or pull the latest for non-module workflows. Documentation links to DigitalOcean's API reference, GoDoc for the client, and example programs for droplets, inference, and agent-style calls.
Key features
- DigitalOcean V2 API coverage
- Token-based client authentication
- Droplet, Kubernetes, and volume APIs
- Serverless inference and chat clients
- Action Gateway tools and MCP support
- Configurable HTTP retries
- Paginated list helpers
- Linked API and GoDoc references
Use cases
- Automating Droplet and cluster provisioning
- Go DevOps against DigitalOcean
- Calling inference APIs from Go services
- Integrating Action Gateway sessions
- Building internal cloud control tools