migration comparison getting-started

Migrating from Portkey or Helicone to VoidLLM

· 12 min read

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.

Why people look at moving

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.

Be sure before you start

Portkey and Helicone are broader than a proxy in some ways. Do not migrate if you depend on any of these:

Concept mapping

Portkey or HeliconeVoidLLM
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-prodA 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-listsModel allowlists at org, team, and key level. An empty list means all models are allowed at that level
Portkey workspacesTeams 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 weightsstrategy: weighted with integer weight per deployment
Portkey retries and on_status_codesmax_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 limitsToken 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 tracesNo 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 logsUsage events only: key, org, team, model, token counts, cost estimate, duration, time to first token
Helicone sessions, scores, datasets, prompts, HQLNo equivalent
CachingNo equivalent
Alerts and reportsCost reports and budget alerts in Pro. Prometheus metrics in all tiers
SSOEnterprise 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.

Step 1: Inventory what you really use

Before you touch anything, write down:

  1. Every provider and model your clients call, and which provider keys back them.
  2. Every Portkey config or Helicone gateway setting in use (fallbacks, load balancing, caching, retries).
  3. Every place your code sets x-portkey-* or Helicone-* headers. Those must go, and you may find some you forgot.
  4. Who looks at logs today, and for what. This decides how painful Step 5 is.

Step 2: Run VoidLLM next to your current gateway

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.

Step 3: Translate providers and routing

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.

Step 4: Recreate keys, teams, and limits

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.

Step 5: Switch clients

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.

The logging trade-off, honestly

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.

Step 6: Cut over and clean up

  1. Compare VoidLLM usage numbers with what your old gateway reports for the same traffic.
  2. Export the history you need before you cancel or delete anything. Check the export options in your Portkey or Helicone plan, they differ by tier.
  3. Revoke the old gateway keys and remove the vendor headers from your code.
  4. Remove old provider keys from the old gateway, and rotate them if they were stored in a hosted service.

Gotchas

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.

Frequently asked questions

Can I keep my prompt and response logs when I move to VoidLLM?

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.

Do I have to change my application code?

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.

Why would I move away from Portkey or Helicone?

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.

Related posts