Skip to main content
Edgee can be integrated to your stack in different ways. You can use our SDKs, use our API directly, or use our official integrations with other tools.

Use our SDKs

npm install edgee
Then, you can start using Edgee in your application. Here is a quick example:
import Edgee from 'edgee';

const edgee = new Edgee(process.env.EDGEE_API_KEY);

const response = await edgee.send({
  model: 'gpt-5.2',
  input: 'What is the capital of France?',
});

console.log(response.content);
// "The capital of France is Paris."

if (response.compression) {
  console.log(`Tokens saved: ${response.compression.saved_tokens}`);
  console.log(`Reduction: ${response.compression.reduction}%`);
  console.log(`Cost savings: ${(response.compression.cost_savings / 1_000_000).toFixed(4)}`);
  console.log(`Compression time: ${response.compression.time_ms}ms`);
}
// "Tokens saved: 100"
// "Reduction: 50%"
// "Cost savings: $0.0093"
// "Compression time: 100ms"
To learn more about the SDKs, see the individual SDK pages.

Use Edgee in your Coding Assistant

The easiest way is to use the Edgee CLI — it handles authentication and configuration automatically:
curl -fsSL https://install.edgee.ai | bash
edgee init
edgee launch claude
You can also configure your coding assistant manually:

Edgee CLI

The fastest path: install, authenticate, and launch in two commands. Supports Claude Code and Codex.
https://mintcdn.com/edgee-codex-doc/OR0p4oLL7vwbdYvp/images/icons/claude.svg?fit=max&auto=format&n=OR0p4oLL7vwbdYvp&q=85&s=3e39843245b58e158b1839ddccd06371

Claude Code

Manual configuration for Claude Code via environment variables or settings file.

Codex

Launch Codex through Edgee using the CLI.
https://mintcdn.com/edgee-codex-doc/OR0p4oLL7vwbdYvp/images/icons/opencode.svg?fit=max&auto=format&n=OR0p4oLL7vwbdYvp&q=85&s=2b8277cbcfcab9bb7bc76db8cdfd69d2

OpenCode

Connect OpenCode’s CLI agent to Edgee for cost savings and unified access to multiple models.

Use Edgee in your Framework

You can use Edgee in your preferred Framework by using our official integrations.
https://mintcdn.com/edgee-codex-doc/OR0p4oLL7vwbdYvp/images/icons/openai.svg?fit=max&auto=format&n=OR0p4oLL7vwbdYvp&q=85&s=a161e507f8691582db8682aa26acdb22

OpenAI SDK

Point your existing OpenAI SDK at Edgee — no code changes, just swap the base URL and API key.
https://mintcdn.com/edgee-codex-doc/OR0p4oLL7vwbdYvp/images/icons/anthropic.svg?fit=max&auto=format&n=OR0p4oLL7vwbdYvp&q=85&s=b274f2ad3909e4c3e2a8003e4cd9f8fa

Anthropic SDK

Use the Anthropic SDK with Edgee to access Claude and other models through one gateway.
https://mintcdn.com/edgee-codex-doc/OR0p4oLL7vwbdYvp/images/icons/langchain.svg?fit=max&auto=format&n=OR0p4oLL7vwbdYvp&q=85&s=b774df338122d9da22fd57afdca1e234

LangChain

Run chains, agents, and RAG pipelines through Edgee for cost tracking and compression.