claude-agent-sdk-go

Unofficial Go SDK for Claude Code CLI integration. See the Claude Agent SDK documentation for more information. This project has been renamed from claude-code-s

What is claude-agent-sdk-go?

Unofficial Go SDK for Claude Code CLI integration. See the Claude Agent SDK documentation for more information. This project has been renamed from claude-code-sdk-go.

Overview of claude-agent-sdk-go

What it is

An unofficial Go SDK for integrating with the Claude Code CLI. It provides two APIs (Query and Client) for building applications that use Claude's code understanding, file operations, and external tool integrations. The project was renamed from claude-code-sdk-go.

Key features

  • Two APIs for different needs – Query for automation, Client for interaction - 100% Python SDK compatibility – Same functionality, Go-native design - Automatic resource management – WithClient provides Go-idiomatic context manager pattern - Session management – Isolated conversation contexts with Query() and QueryWithSession()
  • Built-in tool integration – File operations, AWS, GitHub, databases, and more - Production ready – Comprehensive error handling, timeouts, resource cleanup - Security focused – Granular tool permissions and access controls - Context-aware – Maintain conversation state across multiple interactions - Advanced capabilities – Permission callbacks, lifecycle hooks, file checkpointing

Use cases

Building production-ready applications that require Claude's code understanding, secure file operations, and external tool integrations. Suitable for automation, scripting, CI/CD integration (Query API), and interactive conversations, multi-turn workflows, streaming responses (Client API).

Getting started

bash go get github.com/severity1/claude-agent-sdk-go Prerequisites: Go 1.18+, Node.js, Claude Code (npm install -g @anthropic-ai/claude-code)

License and pricing

MIT license. Open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/severity1claude-agent-sdk-go.svg)](https://yunodb.com/tools/severity1claude-agent-sdk-go?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/severity1claude-agent-sdk-go?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/severity1claude-agent-sdk-go.svg" alt="Featured on YunoDB" height="20"></a>