Skip to content


The KraftCloud Go module,, provides complete lifecycle management for the deployment and management of instances, services and volumes on KraftCloud. Please see for full details of the module.

Basic API Usage

A simple example which uses the kraftcloud.Client and starts an instance on the fra0 metro can be done via:

package main
import (
kraftcloud ""
kcinstance ""
func main() {
ctx := context.TODO()
client := kraftcloud.NewClient(
// Optional:
// kraftcloud.WithDefaultMetro("fra0"),
instance, err := client.Instances().WithMetro("fra0").Create(ctx, kcinstance.CreateInstanceRequest{
Autostart: true,
Image: "caddy:latest",
Name: "my-instance",
if err != nil {
fmt.Printf("%#v\n", instance)