> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Go SDK

> Official Go module for server-side 0xkey API access, signing, and enclave encryption.

The official Go SDK [`github.com/0xkey-io/sdk-go`](https://github.com/0xkey-io/sdk-go) targets **server-side** integrations: Company Wallets, delegated access, OTP backends, wallet automation, and chain-specific signing examples.

<Note>
  **Embedded Wallets** in browser apps use [React Wallet Kit](/sdks/react/getting-started) or [`@0xkey-io/core`](/sdks/typescript-frontend/getting-started). Use Go when your signing logic runs on a trusted backend.
</Note>

## Status

| Item                                      | Status                                                                     |
| :---------------------------------------- | :------------------------------------------------------------------------- |
| Published module (`go get`)               | **Supported** — [`v0.1.0+`](https://pkg.go.dev/github.com/0xkey-io/sdk-go) |
| Generated API client                      | **Supported**                                                              |
| Examples (OTP, delegated access, signing) | **Supported**                                                              |
| Parity with every TypeScript helper       | **Partial** — prefer TypeScript server SDK for Next.js proxies             |

***

## Quick install

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
go get github.com/0xkey-io/sdk-go@latest
```

[Getting started](/sdks/go/getting-started) walks through API keys, Whoami, and local `api.0xkey.com` configuration.

***

## Capabilities

| Area                                        |                     Go SDK                     |
| :------------------------------------------ | :--------------------------------------------: |
| API key authentication                      |                       Yes                      |
| Wallet / policy / user management           |                       Yes                      |
| Sign transaction / raw payload              |                       Yes                      |
| Email OTP with HPKE (`pkg/enclave_encrypt`) |                       Yes                      |
| Delegated access setup                      |                  Yes (example)                 |
| Auth Proxy replacement                      | No — use TypeScript or HTTP for proxy patterns |
| React / browser sessions                    |            No — use `@0xkey-io/core`           |

***

## Sub-packages

| Package               | Purpose                                |
| :-------------------- | :------------------------------------- |
| `pkg/apikey`          | Key generation and request signing     |
| `pkg/enclave_encrypt` | HPKE encryption to Signer enclave      |
| `pkg/crypto`          | Session JWT and OTP token verification |
| `pkg/proofs`          | Nitro attestation verification         |
| `pkg/store/local`     | `~/.config/0xkey/keys/` storage        |
| `pkg/api/client`      | Generated go-swagger client            |

***

## Examples (repository)

| Workflow                                             | Path                               |
| :--------------------------------------------------- | :--------------------------------- |
| [Getting started — Whoami](/sdks/go/getting-started) | `examples/whoami/`                 |
| Email OTP (HPKE)                                     | `examples/email_otp/`              |
| Delegated access                                     | `examples/delegated_access/`       |
| Sign transaction / raw payload                       | `examples/signing/`                |
| Ethereum / Solana tx management                      | `examples/transaction_management/` |
| go-ethereum BindSigner                               | `examples/go-ethereum/`            |
| Wallet create / import / export                      | `examples/wallets/`                |
| Generate API key                                     | `examples/apikey/`                 |

***

## API reference

* [pkg.go.dev](https://pkg.go.dev/github.com/0xkey-io/sdk-go) — module and sub-package docs
* [GitHub Releases](https://github.com/0xkey-io/sdk-go/releases) — changelog
* [HTTP API](/developer-reference/api-overview/intro) — activity model and stamps

***

## TypeScript alternative

Node.js backends can use [`@0xkey-io/sdk-server`](/sdks/javascript-server) with the same API key model and built-in Express/Next proxies.
