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

You can use Edgee in your preferred Coding Assistant by using our official integrations.
https://mintcdn.com/edgee/RmPUqoqJw-u0FxFP/images/icons/claude.svg?fit=max&auto=format&n=RmPUqoqJw-u0FxFP&q=85&s=d3154991b618d253ee22ffaf55a433fc

Claude Code

Route Claude Code traffic through Edgee for token compression and observability over every coding session.
https://mintcdn.com/edgee/q0pRfKOA-_MkO9qY/images/icons/opencode.svg?fit=max&auto=format&n=q0pRfKOA-_MkO9qY&q=85&s=ea2fc548940c74f99826d9c3f651e2ad

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/q0pRfKOA-_MkO9qY/images/icons/openai.svg?fit=max&auto=format&n=q0pRfKOA-_MkO9qY&q=85&s=a65508ff5c1f9427cbaf745f9cc964e4

OpenAI SDK

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

Anthropic SDK

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

LangChain

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