Claude Code with any LLM
Find a file
Thomas Kosiewski fce40fa5f7
Add Nix development environment and Claude guidance file (#4)
# Add Nix development environment and Claude.ai integration

This PR adds support for Nix development environments and improves Claude.ai integration:

1. Added a `CLAUDE.md` file that provides guidance to Claude Code when working with this repository, including:
   - Project overview and architecture explanation
   - Development commands and testing instructions
   - Environment variable documentation

2. Added Nix development environment support:
   - Created `flake.nix` and `flake.lock` for reproducible development environments
   - Configured development shell with bun, nodejs, and code quality tools
   - Added treefmt integration for consistent code formatting

3. Updated `.gitignore` to exclude Nix-related files:
   - `.direnv`
   - `.envrc`
   - `.claude`

These changes make it easier for developers using Nix to contribute to the project and improve the experience when using Claude Code with this repository.
2025-08-08 16:50:38 +02:00
src Fix google provider support 2025-05-27 16:54:49 -04:00
.gitignore Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
bun.lock Initial commit 2025-05-27 15:57:58 -04:00
CLAUDE.md Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
demo.png Initial commit 2025-05-27 15:57:58 -04:00
flake.lock Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
flake.nix Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
LICENSE Initial commit 2025-05-27 15:57:58 -04:00
package.json Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
README.md Add Nix development environment and Claude guidance file 2025-08-08 15:10:26 +02:00
tsconfig.json Initial commit 2025-05-27 15:57:58 -04:00

anyclaude

NPM Version

Use Claude Code with OpenAI, Google, xAI, and other providers.

  • Extremely simple setup - just a basic command wrapper
  • Uses the AI SDK for simple support of new providers
  • Works with Claude Code GitHub Actions

Get Started

# Use your favorite package manager (bun, pnpm, and npm are supported)
$ pnpm install -g anyclaude

# anyclaude is a wrapper for the Claude CLI
# `openai/`, `google/`, `xai/`, and `anthropic/` are supported
$ anyclaude --model openai/o3

Switch models in the Claude UI with /model openai/o3.

FAQ

What providers are supported?

See the providers for the implementation.

  • GOOGLE_API_KEY supports google/* models.
  • OPENAI_API_KEY supports openai/* models.
  • XAI_API_KEY supports xai/* models.

Set a custom OpenAI endpoint with OPENAI_API_URL to use OpenRouter

How does this work?

Claude Code has added support for customizing the Anthropic endpoint with ANTHROPIC_BASE_URL.

anyclaude spawns a simple HTTP server that translates between Anthropic's format and the AI SDK format, enabling support for any AI SDK provider (e.g., Google, OpenAI, etc.)

Do other models work better in Claude Code?

Not really, but it's fun to experiment with them.

ANTHROPIC_MODEL and ANTHROPIC_SMALL_MODEL are supported with the <provider>/ syntax.