schlunsen

Claude Agent SDK Go — Git skill for Claude Code

Git community

Port of the official Python SDK to Go.

How to install Claude Agent SDK Go

This entry records only its repository, not the path inside it, so there is no exact command to give. Open schlunsen/claude-agent-sdk-go and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Agent SDK Go does

Port of the official Python SDK to Go.

Alternatives in Git

README

Claude Agent SDK for Go

[![Tests](https://github.com/schlunsen/claude-agent-sdk-go/workflows/Tests/badge.svg)](https://github.com/schlunsen/claude-agent-sdk-go/actions) [![Go Version](https://img.shields.io/badge/Go-1.24%2B-00ADD8?logo=go)](https://golang.org/dl/) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Release](https://img.shields.io/github/v/release/schlunsen/claude-agent-sdk-go)](https://github.com/schlunsen/claude-agent-sdk-go/releases/latest) [![Go Report Card](https://goreportcard.com/badge/github.com/schlunsen/claude-agent-sdk-go)](https://goreportcard.com/report/github.com/schlunsen/claude-agent-sdk-go)

**Unofficial community port** of the [official Python SDK](https://github.com/anthropics/claude-agent-sdk-python)

⚠️ This is **not affiliated with or endorsed by Anthropic**. Use at your own risk.

A Go SDK for building multi-turn AI agent applications with Claude via the Claude Code CLI. Build agentic workflows, interact with tools, manage permissions, and stream responses with full control over execution.

Features

  • 🚀 One-shot queries - Simple Query() function for single interactions
  • 🔄 Interactive sessions - Bidirectional control protocol with Client for complex workflows
  • 🛠️ Tool integration - Permission callbacks and tool use controls
  • 🎣 Hook system - Respond to lifecycle events (PreToolUse, PostToolUse, etc.)
  • 📡 MCP support - Model Context Protocol servers (external and SDK-based) + [NEW] Factory function for simplified server creation (Issue #24)
  • ⚡ Streaming - Full message streaming with partial outputs
  • 🎯 Idiomatic Go - Uses goroutines, channels, and context for natural concurrency
  • 📦 Zero dependencies - Core SDK uses only Go stdlib (except test examples)

Comparison with Python SDK

Coming from Python? We have comprehensive guides: