headroom/docs
Parideboy 45a5a33b33
docs(proxy): document Vertex AI backend setup, env vars, aliases, native passthrough (#2422)
## Description

Documents the Vertex AI proxy backend properly, fixing #2393. Following
the docs verbatim (`pip install "headroom-ai[proxy]"` + `headroom proxy
--backend vertex_ai`) currently fails with `vertexai import failed`, and
the LiteLLM-specific `VERTEXAI_PROJECT`/`VERTEXAI_LOCATION` env vars are
documented nowhere — risking requests silently resolving against the ADC
default quota project and billing the wrong GCP project.

All documented behavior was verified against source: alias normalization
in `headroom/providers/registry.py`
(`vertex`/`google-vertex`/`googlevertex` → `vertex_ai`), the
always-registered native publisher passthrough routes in
`headroom/providers/proxy_routes.py`, and `pyproject.toml` (no extra
pulls in `google-cloud-aiplatform`).

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [x] Documentation update
- [ ] Refactor
- [ ] Other

## Changes Made

- `docs/content/docs/proxy.mdx`: new **Google Vertex AI** subsection
under Cloud providers — `google-cloud-aiplatform>=1.38` requirement (not
in any extra or Docker image), `VERTEXAI_PROJECT`/`VERTEXAI_LOCATION`
env vars with a warning about silent ADC quota-project fallback and
their distinction from the standard
`GOOGLE_CLOUD_PROJECT`/`GOOGLE_CLOUD_LOCATION` vars, backend name alias
equivalence (`vertex_ai` / `vertex` / `google-vertex` / `googlevertex` /
`litellm-vertex` / `litellm-vertex_ai`), and cross-links to the Claude
Code on Vertex page and the LiteLLM callback page.
- `docs/content/docs/proxy.mdx`: new **Native Vertex passthrough
routes** subsection documenting the unconditionally registered
`/{api_version}/projects/{project}/locations/{location}/publishers/{publisher}/models/{model}:*`
routes and the `publisher=google` (Gemini handler) vs
`publisher=anthropic` (LiteLLM-Vertex path) branching.
- `docs/content/docs/installation.mdx`: added `VERTEXAI_PROJECT` and
`VERTEXAI_LOCATION` rows to the LLM provider keys table, plus a pointer
to the new Vertex section for the SDK dependency.
- `docs/content/docs/litellm.mdx`: cross-reference callout
distinguishing the LiteLLM callback integration from the proxy's
`litellm-*` backends (issue gap #5).

## Testing

- [x] Docs build passes locally

**Test Output**

```
$ npm run build          # docs/ — same as CI validate-nextjs
✓ Static + SSG pages generated (exit code 0), /docs/proxy, /docs/installation, /docs/litellm prerendered

$ mkdocs build           # same as CI validate-mkdocs
INFO    -  Documentation built in 8.32 seconds
```

## Real Behavior Proof

- Environment: Windows 11, Node 20, npm 10, Python 3.13, mkdocs-material
(latest), branch `docs/2393-vertex-ai-backend` off `upstream/main`.
- Exact command / steps: `cd docs && npm ci && npm run build`; `mkdocs
build` from repo root; manually re-verified each documented claim
against `headroom/providers/registry.py` (alias normalization),
`headroom/providers/proxy_routes.py` (publisher passthrough routes), and
`pyproject.toml` `[project.optional-dependencies]` (no vertex SDK in any
extra).
- Observed result: Both docs builds succeed; new sections render with
valid internal anchors (`/docs/proxy#google-vertex-ai`,
`/docs/proxy#cloud-providers`, `/docs/claude-code-vertex`,
`/docs/litellm`).
- Not tested: Live end-to-end Vertex AI request through the proxy (no
GCP project available); error messages and env-var behavior are taken
from the issue reporter's verified reproduction on v0.32.0 and
cross-checked against LiteLLM's Vertex provider docs.

## Review Readiness

- [x] I have performed a self-review
- [x] This PR is ready for human review

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 11:45:10 -07:00
..
app docs: improve discoverability for AI agents and search crawlers 2026-05-13 17:36:06 -07:00
components tokens saved grid 2026-04-12 13:42:20 +06:00
content/docs docs(proxy): document Vertex AI backend setup, env vars, aliases, native passthrough (#2422) 2026-07-19 11:45:10 -07:00
lib docs(ci): add CI/CD flow diagrams (#1062) 2026-06-16 23:05:15 -07:00
overrides fix: repair release and docs pipelines 2026-04-16 12:53:51 -05:00
screenshots Merge pull request #147 from JerrettDavis/feat/anthropic-usage-insights 2026-04-12 10:54:22 -07:00
.gitignore new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
bun.lock fix(deps): remediate dependency CVEs and publish SBOM (#1509) 2026-06-27 15:28:12 -07:00
claude-code-bedrock-headroom.md fix(bedrock): route ARNs via converse, named AWS profiles, and au. re… (#1456) 2026-07-02 22:51:05 -05:00
next.config.mjs new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
observability.md fix(observability): G3 remediation — bound cardinality + wire dead metrics 2026-05-24 10:41:56 -07:00
package-lock.json fix: add Vercel deploy config and workflow for docs site (#1739) 2026-07-14 13:25:18 -04:00
package.json fix: add Vercel deploy config and workflow for docs site (#1739) 2026-07-14 13:25:18 -04:00
platform-feature-matrix.json fix: harden persistent install startup (#1851) 2026-07-10 00:40:34 -04:00
platform-stabilization.md fix: harden persistent install startup (#1851) 2026-07-10 00:40:34 -04:00
postcss.config.mjs new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
proxy.ts new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
README.md new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
rtk-architecture.md fix(observability): wire Phase G PR-G3 RTK + proxy metrics (H-blocker) 2026-05-22 13:18:42 -07:00
source.config.ts docs(ci): add CI/CD flow diagrams (#1062) 2026-06-16 23:05:15 -07:00
tsconfig.json new docs UI + ts doc coverage 2026-04-12 13:15:58 +06:00
vercel.json fix: add Vercel deploy config and workflow for docs site (#1739) 2026-07-14 13:25:18 -04:00

docs

This is a Next.js application generated with Create Fumadocs.

Run development server:

npm run dev
# or
pnpm dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Explore

In the project, you can see:

  • lib/source.ts: Code for content source adapter, loader() provides the interface to access your content.
  • lib/layout.shared.tsx: Shared options for layouts, optional but preferred to keep.
Route Description
app/(home) The route group for your landing page and other pages.
app/docs The documentation layout and pages.
app/api/search/route.ts The Route Handler for search.

Fumadocs MDX

A source.config.ts config file has been included, you can customise different options like frontmatter schema.

Read the Introduction for further details.

Learn More

To learn more about Next.js and Fumadocs, take a look at the following resources: