CU

coniferkit/use-conifer

Developer tools공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

49 stars 7 forks 품질 83 트렌드 27Apache-2.0

Conifer SDK - 클라우드, 로컬, BYOK inference의 한 게이트웨이, 정확한 통화 비용 영수증. 유형 스크립트 + 파이썬 + MCP.

개요

Conifer는 API 게이트웨이입니다. 당신은 하나의 API 키와 하나의 기본 URL을 얻고, 뒤에는 OpenAI, Anthropic, Google, DeepSeek, Moonshot 및 기타 모델입니다. 당신은 각 납품업자에 가입하지 않으며 당신은 5개의 열쇠를 juggle하지 않습니다. OpenAI와 Anthropic APIs를 호출하기 때문에 이미 사용하는 도구와 함께 작동합니다. 앱이 사용자 정의 기본 URL과 API 키 (Cursor, Cline, SillyTavern, LibreChat, Codex, Claude Code, openai 패키지를 사용하여 아무것도)를 설정하면 다음과 같이 작동합니다. 그것은 전체적인 제품입니다. 이 repo는 드롭 인을 원하는 사람들을위한 옵션 SDK입니다 : TypeScript 및 Python 클라이언트, MCP 서버. 다른 게이트웨이가하지 않는 것을 얻을 수있는 두 가지 : 1. , nanodollars의 정수 번호로 응답으로 반환. 토큰의 견적은 없습니다. 2. maxCostNanoUsd를 설정하고 게이트웨이는 더 많은 비용이 발생할 수 있는지 전에 전화를 거부합니다. 가격 : 모델 자체 목록 가격, 마크 업이 청구됩니다.

개요(AI 번역)

모든 주요 모델의 앞에 하나의 API 키 — 모든 통화의 정확한 비용.

· · 문제 · 관련 기사

이, 일반 용어에서

Conifer는 API 게이트웨이입니다. 당신은 하나의 API 키와 하나의 기본 URL을 얻을, 그리고 뒤에 OpenAI, Anthropic, Google, DeepSeek, Moonshot 등의 모델입니다. 이름 * 각 납품업자도 가입하지 않으며 5개의 열쇠를 juggle 하지 않습니다.

그것은 당신이 이미 사용 하는 도구와 작동, 때문에 그것은 OpenAI를 말 하 고 Anthropic APIs. 앱이 사용자 정의 기본 URL과 API 키 (Cursor, Cline, SillyTavern, LibreChat, Codex, Claude Code, openai를 사용하는 모든 것 포장), 그것을 여기 포인트 및 그것은 작동:

그것은 전체적인 제품입니다. 이 repo는 원하는 사람들을 위한 선택적인 SDK입니다 드롭 인 이상 : TypeScript 및 Python 클라이언트, MCP 서버.

다른 게이트웨이가하지 않는 것을 얻을 수있는 두 가지 :

  1. 모든 통화의 정확한 비용, 응답으로 반환, 항목, as nanodollars의 정수 번호. 토큰의 견적은 없습니다.
  2. ** 요청당 하드 지출 캡.** 설정 maxCostNanoUsd 및 게이트웨이 더 많은 비용을 할 수 있다면 발생하기 전에 전화를 거부합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

What this is, in plain terms

Conifer is an API gateway. You get one API key and one base URL, and behind it are models from OpenAI, Anthropic, Google, DeepSeek, Moonshot and others. You do not sign up with each vendor and you do not juggle five keys.

It works with the tools you already use, because it speaks the OpenAI and Anthropic APIs. If an app lets you set a custom base URL and API key (Cursor, Cline, SillyTavern, LibreChat, Codex, Claude Code, anything using the openai package), point it here and it works:

Base URL:  https://api.conifer.build/v1
API key:   sk-conifer-…      (get one at https://conifer.build/console#/keys)
Model:     claude-fable-5, gpt-5.5, deepseek-v4, …

That is the whole product. This repo is the optional SDK for people who want more than a drop-in: a TypeScript and Python client, plus an MCP server.

Two things you get here that other gateways do not:

  1. The exact cost of every call, returned with the answer, itemized, as an integer number of nanodollars. Not an estimate from token counts.
  2. A hard spending cap per request. Set maxCostNanoUsd and the gateway refuses the call before it happens if it could cost more.

Pricing: you are charged the model’s own list price, no markup. If you’d rather use your own OpenAI/Anthropic keys, Conifer will proxy them for free.

See the router pick a model

Conifer can also pick the model for you based on how hard the question is. In the recording below, an easy question (“what port?”) goes to a cheap fast model and answers in 3 seconds. A hard one, with the dial set to best, goes to Claude Opus 5 and takes a minute. Same session, real screen recording, not sped up.

GitHub에서 전체 README 보기

설치

npx -y conifer-sdk conifer-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "conifer": { "command": "node", "args": ["/path/to/use-conifer/bin/conifer-mcp.mjs"], "env": { "CONIFER_API_KEY": "sk-conifer-…" } } } }