Status: [LIVE] Endpoints found: https://api.anthropic.com/v1/messages Source: https://github.com/jw-open/artifact-gateway # artifact-gateway [![PyPI version](https://img.shields.io/pypi/v/artifact-gateway.svg)](https://pypi.org/project/artifact-gateway/) [![Python versions](https://img.shields.io/pypi/pyversions/artifact-gateway.svg)](https://pypi.org/project/artifact-gateway/) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) [![CI](https://github.com/jw-open/artifact-gateway/actions/workflows/test.yml/badge.svg)](https://github.com/jw-open/artifact-gateway/actions/workflows/test.yml) Secure API gateway for AI-generated artifact apps — external HTTPS proxy, internal API forwarding, and user-isolated database access with JWT-scoped auth tokens. --- ## What it is AI agents (Claude Code, Codex, Gemini CLI) can produce interactive web apps — **artifacts** — that need to call external APIs, read internal data, and persist state. These apps run inside iframes and cannot authenticate directly. `artifact-gateway` provides: - **App tokens** — short-lived JWTs scoped to a user+context, derived from the user's RBAC role. - **External proxy** — forward calls from artifact apps to any external HTTPS API without exposing the user's credentials. - **Internal proxy** — forward calls to internal OhWise APIs with allowlist enforcement; the user's JWT is forwarded so RBAC is handled by the target service. - **DuckDB handler** — per-user and per-session isolated DuckDB files on the local filesystem. - **MongoDB handler** — per-user and per-session isolated MongoDB collections via Motor. > **Browser client SDK:** the matching client that artifact apps load in the iframe lives in [`sdk/js/`](sdk/js/) and is published to npm as **[`artifact-sdk`](https://www.npmjs.com/package/artifact-sdk)** (`npm i artifact-sdk`, or via CDN). This Python package is the server half; the JS SDK is the client half. --- ## Installation Base install (token + proxy only, no database drivers): ```bash pip install artifact-gateway ``` With DuckDB support: ```bash pip in