Anthropic SDK Ruby — Development skill for Claude Code
Gem Version.
How to install Anthropic SDK Ruby
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anthropics/anthropic-sdk-ruby and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Anthropic SDK Ruby does
Gem Version.
Alternatives in Development
- Claude API — Build apps with the Claude API or Anthropic SDK 94.1k ★
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
README
Claude SDK for Ruby
[](https://rubygems.org/gems/anthropic)
The Claude SDK for Ruby provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Ruby applications.
Documentation
Full documentation is available at **[platform.claude.com/docs/en/api/sdks/ruby](https://platform.claude.com/docs/en/api/sdks/ruby)**.
Installation
Add to your application's Gemfile:
gem "anthropic", "~> 1.69.0"
Getting started
require "bundler/setup"
require "anthropic"
anthropic = Anthropic::Client.new(
api_key: ENV["ANTHROPIC_API_KEY"] # This is the default and can be omitted
)
message = anthropic.messages.create(
max_tokens: 1024,
messages: [{role: "user", content: "Hello, Claude"}],
model: "claude-opus-4-6"
)
puts(message.content)
Requirements
Ruby 3.2.0+
Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md).
License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Acknowledgements
Thank you [@alexrudall](https://github.com/alexrudall) for giving feedback, donating the anthropic Ruby Gem name, and paving the way by building the first Anthropic Ruby SDK.
Related Skills
Dario
A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline,
Anthropic.SDK
An unofficial C#/.NET SDK for accessing the Anthropic Claude API. This package is not affiliated with, endorse
Openapis
Free Claude API + free OpenAI API in one unified proxy. Drop-in compatible with Anthropic SDK, OpenAI SDK, Cla
Agent Harness
Unified harness for hot-swapping between OpenAI Agents SDK and Anthropic Claude Agent SDK with shared tool reg
Codebuddy2api
Proxy CodeBuddy with OpenAI-compatible and Anthropic-compatible APIs for Codex, Claude Code, and standard SDK
Clau.Rs
clau.rs is a type-safe SDK for the Claude Code tool by Anthropic
Related Agents
LLM Expert
Use this agent for AI SDK integration, LLM provider configuration, prompt template management, error handling
AI ML
AI/ML 통합 전문가 + LLM API 최신 모델/SDK 코딩 가이드. RAG 시스템, 문서 분석, OpenAI/Anthropic/Gemini/Ollama 최신 API 보장. "AI integra
Anthropic SDK Upgrader
Use this agent when the user needs to upgrade Anthropic SDK packages. This includes: upgrading @anthropic-ai/s