Local-First AI Proxy

Secure your API keys. Track every token, cost, & latency.

API Vault is an open-source, local-first developer dashboard. It runs as a lightweight local proxy, securing your API keys, detailing usage history, and syncing provider balances.

Get Started Try Live Sandbox

Interactive Request Sandbox

Simulate a request flowing through API Vault to see how it intercepts, forwards, and audits API traffic.

C
Third-Party App

Select a model to send a chat completion request.

LOCAL PROXY
AV
API Vault

Local Server intercepting calls on port 3210.

http://127.0.0.1:3210/proxy/openai_provider/v1
P
AI Upstream Provider

Authenticates with the decrypted real API key.

api.openai.com
api.deepseek.com
api.anthropic.com
Access Control Gateway Analytics & Billing
Proxy: 127.0.0.1:3210 Tunnel: Off
4,952 calls recorded
Sync models provider-a provider-e provider-c provider-b provider-d
432 provider models 415 grouped names 0 manual
~anthropic/claude-haiku-latest
1 provider Text Tools
0 calls No cost
~anthropic/claude-opus-latest
1 provider Text Tools Reasoning
0 calls No cost
~google/gemini-flash-latest
1 provider Text Tools
0 calls No cost

Provider Status

Aggregated health across all models per provider (7-day window)

provider-a https://api.provider-a.net
STATUSOutage
SUCCESS65.7%
LATENCY11691ms
CALLS204
provider-b https://api.provider-b.net/token/...
STATUSOutage
SUCCESS74.1%
LATENCY13288ms
CALLS58
provider-c https://api.provider-c.net/v1
STATUSOutage
SUCCESS68.0%
LATENCY15591ms
CALLS25
!
provider-d https://api.provider-d.net/v1
STATUSDegraded
SUCCESS84.5%
LATENCY16813ms
CALLS155
-
provider-e https://api.provider-e.net/claude-aws
STATUSNo traffic
SUCCESSN/A
LATENCYN/A
CALLS0
Overview Models
All 30d 7d today
0 144,474,006
claude-opus-4-7
36.4%
claude-deepseek-v4...
19.8%
claude-haiku-4-5-20...
13.2%
claude-sonnet-4-6
10.4%
claude-opus-4-6-thi...
8.3%
claude-opus-4-7
863,603 in - 126,028 out
claude-deepseek-v...
390,714 in - 102,811 out
claude-haiku-4-5-...
5,103,289 in - 233,762 out
claude-sonnet-4-6
142,445 in - 144,717 out
api-vault-proxy.log
17:45:00 [INFO] [API Vault] Local server started on port 3210.
17:45:01 [INFO] [API Vault] Master password verified. Local vault file decrypted successfully.
17:45:02 [INFO] [API Vault] Synchronized balances for OpenAI: $120.45 remaining.

Take Control of Your AI Workflow

A set of features designed to make AI API management simple, private, and fully auditable.

Local-First Security

All credentials and tokens are encrypted locally inside .api-vault/vault.json. No data is stored in the cloud.

Multi-Provider Proxy

Seamlessly forwards OpenAI-compatible and Anthropic-compatible requests to any upstream provider.

Token & Latency Audits

Record latency, status, and input/output tokens in real-time to analyze efficiency and identify bottleneck models.

Custom Balance Sync

Configures custom HTTP polling and JSON-path queries to sync provider-reported API balance values automatically.

Cloudflared Tunnels

Integrate with local Cloudflare Tunnels to safely proxy calls from remote websites and cloud platforms to your local vault.

Consolidated Metrics

Automatically groups API keys by provider hostname, giving you aggregated statistics as well as key-level reports.

How API Vault Operates

API Vault acts as a local middleware proxy between third-party applications and the AI platforms.

Third-Party App Local Proxy API Vault Decrypts & Audits OpenAI / Claude DeepSeek / etc
1

Start API Vault Locally

Deploy using Docker or launch by double-clicking the Windows start script. Access the dashboard at localhost:3210.

2

Import API Keys

Save your API keys securely. They will reside in your local vault file and are decrypted on demand.

3

Configure Third-Party Apps

Copy the generated API Vault Base URL and paste it as the custom Endpoint/Base URL in your third-party application.

4

Track & Audit Live Traffic

Make model calls as usual. API Vault automatically handles key management, relays downstream tokens, and updates statistics.

Quick Start

Set up API Vault on your machine in just a couple of steps.

Terminal
# 1. Clone this repository
git clone https://github.com/WENGENG-boop/api-vault.git
cd api-vault

# 2. Build and start API Vault container in the background
docker compose up -d --build

# 3. Open the dashboard in your web browser
# http://localhost:3210
PowerShell / Command Prompt
# 1. Ensure you have Node.js LTS installed (https://nodejs.org)

# 2. Double-click the file "start-api-vault.bat" in the project directory
# The script automatically installs dependencies, builds, and launches the server.

# 3. Access locally:
# http://127.0.0.1:3210

Take Control of Your AI Cost

API Vault gives you deep insights, request logs, and cost analytics locally without exposing your personal API credentials to the cloud.

View on GitHub