CU

coniferkit/use-conifer

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

49 stars 7 forks 品質 83 トレンド 27Apache-2.0

Conifer SDK — クラウド、ローカル、BYOK のインフェレンスのためのゲートウェイです。 タイプスクリプト + Python + MCP.

概要

Conifer は API ゲートウェイです。 1つのAPIキーと1つのベースURLを取得し、その背後にあるのは、OpenAI、Anthropic、Google、DeepSeek、Moonshotなどのモデルです。 各ベンダーにサインアップしておらず、5つのキーを破棄しないでください。 OpenAIとAnthropic APIを話すので、既に使用しているツールで動作します。 アプリケーションがカスタムベース URL と API キー (Cursor、Cline、SillyTavern、LibreChat、Codex、Claude Code、openai パッケージを使用して何か) を設定できるようにしたら、ここでそれを指し、それが動作します。 製品全体です。 このリポジトリは、TypeScript と Python のクライアントと MCP サーバーのドロップインを望む人のためのオプションの SDK です。 他のゲートウェイがそうでないと、ここで取得する2つのこと: 1. , 回答で返された, アイテム化された, 整数のナノドルラーとして. トークン数の推定値ではありません。 2. maxCostNanoUsd とゲートウェイを設定することで、コストがかかる場合に発生する前に呼び出しを拒否します。 価格:モデル自身のリスト価格、マークアップは請求されません.

概要(AI 翻訳)

各主要なモデルの前に1つのAPIキーとすべての呼び出しの正確なコスト。

ドキュメント・ 移行・ 課題・課題 貢献する

これは何ですか、明白な言葉で

Conifer は API ゲートウェイです。 1つの API キーと 1 つのベース URL を 1 つ取得し、それを後ろに OpenAI、Anthropic、Google、DeepSeek、Moonshotなどのモデルです。 お問い合わせ 各ベンダーにサインアップしないでください。5つのキーを破棄しないでください。

既に使用しているツールで、OpenAI と話しているので、 Anthropic API は、 アプリがカスタムベース URL と API キー (Cursor) を設定できるようにしたら、 Cline、SillyTavern、LibreChat、Codex、Claudeコード、[openaiを使用して何か パッケージ)、それをここに置き、それは働きます:

製品全体です。 このリポジトリは、必要な人のためのオプションのSDKです ドロップイン: TypeScript と Python クライアント、および MCP サーバー。

他のゲートウェイがそうでないと、ここで取得する2つのこと:

1.すべてのコールの正確なコスト、回答、商品化、 ナノドルラーの整数。 トークン数の推定値ではありません。 2。** 1つの堅い消費の帽子。**セット[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-…" } } } }