Open-source fine-tuning and model-hosting platform.
Demo - Running Locally - Docs
Use powerful but expensive LLMs to fine-tune smaller and cheaper models suited to your exact needs. Query your past requests and evaluate models against one another. Switch between OpenAI and fine-tuned models with one line of code.
pnpm: npm i -g pnpmgit clone https://github.com/openpipe/openpipecd openpipe && pnpm install.env file (cd app && cp .env.example .env) and enter your OPENAI_API_KEY.DATABASE_URL run the following commands:psql postgres
CREATE ROLE postgres WITH LOGIN PASSWORD 'postgres';
ALTER ROLE postgres SUPERUSER;
DATABASE_URL if necessary to point to your Postgres instance and run pnpm prisma migrate dev in the app directory to create the database.<your local instance>/api/auth/callback/github, e.g. http://localhost:3000/api/auth/callback/github.GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET values from the Github OAuth app (Note: a PR to make auth optional when running locally would be a great contribution!).pnpm dev in the app directory.import os
from openpipe import OpenAI
client = OpenAI(
api_key="Your API Key",
openpipe={
"api_key": "Your OpenPipe API Key",
"base_url": "http://localhost:3000/api/v1", # Local OpenPipe instance
}
)
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "system", "content": "count to 10"}],
openpipe={
"tags": {"prompt_id": "counting"},
"log_request": True
},
)
.env file to .env.test.DATABASE_URL to have a different database name than your development oneDATABASE_URL=[your new datatase url] pnpm prisma migrate dev --skip-seed --skip-generatepnpm test$ claude mcp add OpenPipe \
-- python -m otcore.mcp_server <graph>