This is a how-to, not a pitch. It is for teams that use Portkey or Helicone today and want to try a self-hosted gateway that never stores prompts. If you are still deciding between gateways, the comparisons are VoidLLM vs LiteLLM and VoidLLM vs Bifrost. If you are coming from LiteLLM, use Migrating from LiteLLM to VoidLLM instead.
I do not want to tell a story that is bigger than the facts, so here is what I could check:
Both open source repositories are still active. For migration planning, a change of owner means it is worth re-checking your assumptions about roadmap, pricing, and where the product is heading, and nothing more than that. The other common reason is the one VoidLLM is built around: you would rather not have a third party, or even your own gateway database, holding copies of every prompt.
Portkey and Helicone are broader than a proxy in some ways. Do not migrate if you depend on any of these:
| Portkey or Helicone | VoidLLM |
|---|---|
Portkey API key (x-portkey-api-key) | VoidLLM API key in Authorization: Bearer. Types: user vl_uk_, team vl_tk_, service account vl_sa_ |
Portkey virtual keys, now Model Catalog providers like @openai-prod | A models: entry in voidllm.yaml (or created in the UI) holding the provider credential, encrypted at rest. Clients use the model name or an alias |
| Model Catalog allow-lists | Model allowlists at org, team, and key level. An empty list means all models are allowed at that level |
| Portkey workspaces | Teams inside an org. Community allows 1 org and 3 teams, Pro removes that cap |
Portkey config with "mode": "fallback" | A model with several deployments and strategy: priority |
Portkey config with "mode": "loadbalance" and weights | strategy: weighted with integer weight per deployment |
Portkey retries and on_status_codes | max_retries per model. VoidLLM retries the next deployment on 5xx, timeout, connection errors, and upstream 429 when another deployment is available. Other 4xx go back to the client. There is no per-status-code setting like on_status_codes |
| Portkey or Helicone budget and rate limits | Token budgets (daily, monthly) and rate limits (per minute, per day) at org, team, user, and key level. Most restrictive wins. Limits are in tokens and requests, not dollars |
Helicone Helicone-User-Id and custom properties, Portkey metadata and traces | No per-request tags. Attribution is by key. Issue one key per service, user, or environment |
| Helicone credits (Helicone holds the provider keys) | Not available. You bring your own provider keys |
| Request and response logs | Usage events only: key, org, team, model, token counts, cost estimate, duration, time to first token |
| Helicone sessions, scores, datasets, prompts, HQL | No equivalent |
| Caching | No equivalent |
| Alerts and reports | Cost reports and budget alerts in Pro. Prometheus metrics in all tiers |
| SSO | Enterprise tier |
Sources for the Portkey and Helicone side: Portkey headers, fallbacks, load balancing, budget limits (Enterprise, and select Pro customers), Helicone gateway docs, custom properties, user metrics. VoidLLM side: configuration reference, load balancing docs, RBAC docs.
Before you touch anything, write down:
x-portkey-* or Helicone-* headers. Those must go, and you may find some you forgot.docker run -p 8080:8080 \
-v voidllm_data:/data \
-e VOIDLLM_ENCRYPTION_KEY=$(openssl rand -base64 32) \
-e VOIDLLM_ADMIN_KEY=my-admin-key-at-least-32-chars!! \
ghcr.io/voidmind-io/voidllm:latest
On first start VoidLLM prints a bootstrap vl_uk_ API key and admin credentials once. Save them. The full walkthrough is in Getting Started: Docker to First Request. If you currently run the open source Portkey gateway locally on port 8787, pick a different port or host for VoidLLM so both can run during the move.
Put your model and routing setup in voidllm.yaml. Secrets use ${ENV_VAR} interpolation.
A Portkey config like this (primary OpenAI, fallback Azure):
{
"strategy": { "mode": "fallback" },
"targets": [
{ "provider": "@openai-prod" },
{ "provider": "@azure-prod" }
]
}
becomes one model with two deployments:
models:
- name: gpt-4o
strategy: priority # lowest priority number is tried first
max_retries: 1
aliases: [default]
pricing:
input_per_1m: 2.50 # used for cost estimates in usage reports
output_per_1m: 10.00
deployments:
- name: openai-primary
provider: openai
base_url: https://api.openai.com/v1
api_key: ${OPENAI_KEY}
priority: 1
- name: azure-backup
provider: azure
base_url: https://mycompany.openai.azure.com
api_key: ${AZURE_KEY}
azure_deployment: my-gpt4o-deployment # your Azure deployment name, not the model name
azure_api_version: "2024-10-21"
priority: 2
A Portkey load balance with weights 0.7 and 0.3 becomes strategy: weighted with weight: 7 and weight: 3 on the two deployments. A single provider with no routing is simply:
models:
- name: claude-sonnet-4-5-20250929 # the real model id, this is what is sent upstream
provider: anthropic
base_url: https://api.anthropic.com
api_key: ${ANTHROPIC_KEY}
aliases: [claude-sonnet]
Set your own pricing numbers in pricing: if you want cost estimates, VoidLLM does not guess them. For the other strategies and failure behavior, see Load Balancing and Failover. Two behaviors differ from Portkey that you should plan around. VoidLLM does not retry a stream once it has started, and other 4xx responses are returned to the client. A 429 from one deployment is retried on the next one, but you cannot restrict retries to chosen status codes the way on_status_codes does. Failing over from one model to a different model (fallback: chains) is part of the Enterprise plan.
You cannot import Portkey or Helicone keys. Create VoidLLM keys and hand them out. A reasonable mapping: one team per Portkey workspace (or per product area), one key per service or environment.
Below, $VOIDLLM is your instance URL, $ADMIN_KEY the bootstrap vl_uk_ key, and $ORG_ID your org id (GET /api/v1/orgs lists it).
Create a team with a monthly token budget:
curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/teams \
-H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Platform", "slug": "platform", "monthly_token_limit": 50000000}'
Restrict which models the team may use:
curl -X PUT $VOIDLLM/api/v1/orgs/$ORG_ID/teams/$TEAM_ID/model-access \
-H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{"models": ["gpt-4o", "claude-sonnet-4-5-20250929"]}'
Create a team key for a service, with its own rate limit. The plaintext key is returned once:
curl -X POST $VOIDLLM/api/v1/orgs/$ORG_ID/keys \
-H "Authorization: Bearer $ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "checkout-service", "key_type": "team_key", "team_id": "'$TEAM_ID'", "requests_per_minute": 600}'
Limits are most-restrictive-wins across org, team, user, and key, and unset means unlimited at that level. Only org admins and system admins can set limits on keys. The same steps are available in the embedded admin UI, which is faster for a few dozen keys. For a larger rollout, script it against the Admin API, whose spec is served at /api/docs on your instance. More on structure in Budget Caps Per Team and Cost Allocation Across Teams.
Because there are no per-request tags, think now about how you will attribute spend. A key per service and environment gives you the same answer that Helicone custom properties or Portkey metadata gave, at the granularity of keys. See LLM Chargeback and Cost Attribution.
Portkey, before (OpenAI SDK, via the Portkey gateway, with the Model Catalog model string):
from openai import OpenAI
client = OpenAI(
api_key="PORTKEY_API_KEY", # exact setup varies, see the Portkey docs
base_url="https://api.portkey.ai/v1",
default_headers={"x-portkey-api-key": "PORTKEY_API_KEY"},
)
client.chat.completions.create(model="@openai-prod/gpt-4o", messages=messages)
Helicone, before (legacy proxy URL with auth header):
client = OpenAI(
api_key="OPENAI_API_KEY",
base_url="https://oai.helicone.ai/v1",
default_headers={"Helicone-Auth": "Bearer HELICONE_API_KEY"},
)
After, for both:
from openai import OpenAI
client = OpenAI(
base_url="https://voidllm.example.com/v1",
api_key="vl_tk_...", # key issued by VoidLLM
)
client.chat.completions.create(model="gpt-4o", messages=messages)
The changes are the base URL, the key, removal of the vendor headers, and the model string: @openai-prod/gpt-4o becomes gpt-4o or one of your aliases. Aliases defined in voidllm.yaml can contain @ and /, so you can keep the old string as a global alias, but org and team aliases set through the API only allow letters, digits, hyphens, and underscores. Plain names are the safer choice. If you use Helicone’s newer gateway at ai-gateway.helicone.ai with its credits, the same applies, plus you now need your own provider keys.
Move traffic gradually: one service or environment first, watch the usage dashboard, then the rest. See Drop-in Replacement for the OpenAI SDK for client examples in other languages and tools. For IDE tools like Cursor, see Connect Cursor, Windsurf, and Claude Code.
This is the part that decides whether the migration is a good idea.
What you lose. You can no longer open a request and read the prompt and the answer. Debugging “why did the model say that” cannot start from the gateway. You cannot replay traffic from stored requests, build datasets from production, or run evals on logged data from VoidLLM. Anyone on your team who uses Portkey or Helicone mainly as a log viewer will feel this the most.
What you keep. Who made the request, which model and deployment served it, token counts including cached tokens, an estimated cost, total duration, and time to first token for streams. That covers budgets, chargeback, capacity planning, and health. It is the data that is useful for operating a gateway, without the data that makes a gateway a liability.
How to get the rest, on your terms. If you need content-level debugging, log it where you control scope: in your own application, for the requests you choose, with your own retention and redaction. That keeps the decision with the team that owns the data, instead of making it a property of the infrastructure. Pro adds cost reports, and Enterprise adds OpenTelemetry traces, which carry metadata such as model, status, token counts, and request id, not content. See Zero-Knowledge by Architecture for the full design.
Whether this is a good trade is your call. For regulated data or EU teams that want a gateway designed to support GDPR compliance, it often is. For a team iterating on prompts all day, it may not be, and a logging gateway is the right tool.
If something in this guide does not match what you see, tell me. The docs and this post are meant to match the code, and I would rather fix them than have you find out in production.
No. VoidLLM never stores prompt or response content, and there is no setting to enable it. It keeps usage metadata only: who, which model, token counts, cost, duration. Export any history you need from Portkey or Helicone before you cancel.
Usually only the base URL, the API key, and sometimes the model string. VoidLLM speaks the OpenAI API. Provider-specific SDK features of Portkey or Helicone, such as custom headers, config ids, and tagging properties, have no equivalent and should be removed.
Common reasons are a change of ownership (Palo Alto Networks announced it closed its Portkey acquisition, Helicone says it is now part of Experiential Labs), wanting a self-hosted gateway, or not wanting any prompt storage. Both open source repositories are still active, so nothing forces a move.
Step by step migration from LiteLLM to VoidLLM - config translation, key rollout, client switchover, and gotchas to know before you start.
How to give every developer their own VoidLLM key, put token budgets and rate limits on the team, and run Claude Code and Codex CLI through the proxy. Tested, with versions.
Step-by-step setup for using VoidLLM as your LLM proxy in Cursor and Windsurf, and as an MCP server in Claude Code.
Use VoidLLM as a drop-in replacement for the OpenAI SDK: change base_url and the API key, keep streaming and tool calls, and route to Anthropic, Azure, Bedrock or vLLM.