Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@amux.ai/adapter-anthropic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amux.ai/adapter-anthropic

Anthropic adapter for Amux

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

@amux.ai/adapter-anthropic

Anthropic (Claude) adapter for Amux

npm version License: MIT

Overview

Official Anthropic adapter for Amux, providing bidirectional conversion between Anthropic API format and Amux IR (Intermediate Representation).

Installation

pnpm add @amux.ai/llm-bridge @amux.ai/adapter-anthropic
# or
npm install @amux.ai/llm-bridge @amux.ai/adapter-anthropic

Usage

As Inbound Adapter (Parse Anthropic format)

import { createBridge } from '@amux.ai/llm-bridge'
import { anthropicAdapter } from '@amux.ai/adapter-anthropic'
import { openaiAdapter } from '@amux.ai/adapter-openai'

const bridge = createBridge({
  inbound: anthropicAdapter,
  outbound: openaiAdapter,
  config: {
    apiKey: process.env.OPENAI_API_KEY
  }
})

// Send Anthropic format, receive Anthropic format
const response = await bridge.chat({
  model: 'claude-3-5-sonnet-20241022',
  messages: [{ role: 'user', content: 'Hello!' }]
})

As Outbound Adapter (Call Anthropic API)

import { createBridge } from '@amux.ai/llm-bridge'
import { openaiAdapter } from '@amux.ai/adapter-openai'
import { anthropicAdapter } from '@amux.ai/adapter-anthropic'

const bridge = createBridge({
  inbound: openaiAdapter,
  outbound: anthropicAdapter,
  config: {
    apiKey: process.env.ANTHROPIC_API_KEY
  }
})

// Send OpenAI format, receive OpenAI format
const response = await bridge.chat({
  model: 'gpt-4',
  messages: [{ role: 'user', content: 'Hello!' }]
})

Supported Features

  • ✅ Messages API
  • ✅ Streaming
  • ✅ Tool calling
  • ✅ Vision (image inputs)
  • ✅ System prompts
  • ✅ Thinking/Reasoning (extended thinking)

Supported Models

  • claude-3-5-sonnet-20241022
  • claude-3-5-haiku-20241022
  • claude-3-opus-20240229
  • claude-3-sonnet-20240229
  • claude-3-haiku-20240307

API Compatibility

This adapter supports the Anthropic Messages API format. For detailed API documentation, see Anthropic API Reference.

License

MIT © isboyjc

Keywords

amux

FAQs

Package last updated on 04 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts