agent-sdk active

Fantasy

Maker: charmbracelet License: Apache-2.0 Stars: 954 First released: 2025-08-15 Language: Go
CLI

About

Fantasy came out of Charmbracelet's work on Crush, their terminal coding agent, when the team needed a multi-provider LLM layer in Go that could compile to a single native binary. It exposes fantasy.NewAgent() with system prompts and typed tools, normalizes streaming, retries, JSON repair, and structured output generation across providers, and ships dedicated packages for OpenRouter, Azure, and Bedrock plus a generic openaicompat layer for everything else. Because it is a library, decisions about the loop, the UI, and permissions belong to the embedding program — Crush being the reference implementation. Go developers building terminal-native AI tools use it to avoid writing provider adapters themselves.

Other entries by charmbracelet