Outworld

v0.3.0, Apache-2.0

Outworld

Outworld is an open-source gateway for the OpenAI and Anthropic APIs. It replaces names, emails, phone numbers, addresses and dates with stand-ins before a request is sent to a cloud model, and restores the originals in the response.

go install github.com/davidparkercodes/outworld/cmd/outworld@latest

What it does

You send

Draft a reply to John Smith ([email protected]) confirming our call on March 15, 2024. My verification code is 482913.

The provider sees

Draft a reply to Kasimir Sandoval ([email protected]) confirming our call on December 25, 2024. My verification code is [redacted code].

You get back

A draft addressed to John Smith about March 15, 2024. The verification code was never sent and is not restored.

Walk through every step

Setup

Outworld speaks both the OpenAI Chat Completions API and the Anthropic Messages API. Anything that lets you set a base URL works: Claude Code, the OpenAI and Anthropic SDKs, LiteLLM, Open WebUI, and local servers like Ollama, llama.cpp and vLLM.

Claude Code

export ANTHROPIC_BASE_URL=http://127.0.0.1:8787
claude

Any OpenAI-compatible client

base_url = "http://127.0.0.1:8787/v1"

All integrations

Measured accuracy

Every number comes from a blind corpus of 131 hand-written documents, about 43,000 words with 4,208 labelled values, written without access to the detector code. Nothing was tuned against it. Measured on version 0.3.0 with a dictionary and no model.

0%of emails leaked
8%of phone numbers leaked
16%of all sensitive values leaked, on text it has never seen
99.3%of answers translated back correctly

Outworld removes most of what identifies people in ordinary prompts. It does not remove all of it. See every number and what drives it

Limits

  • Not anonymization. A rare job title plus a small town can still identify someone with every name replaced.
  • Not a content filter. Your medical question is still a medical question. Route that kind of request to a local model, or block it.
  • Not a secret scanner. It strips the credentials it recognizes, and about a third of unlabelled secrets still get through.

Read the threat model

Install

go install github.com/davidparkercodes/outworld/cmd/outworld@latest
export OUTWORLD_VAULT_KEY=$(outworld keygen)
outworld serve --config outworld.yaml