SpecGraph
All posts
enterprise26 June 20264 min read

Bring your own Claude: SpecGraph on your own Azure AI Foundry deployment

Organisations can now point SpecGraph at their own Claude deployment behind Azure API Management, with token limits enforced on their side of the wire. Here's how it works, and where the boundary sits.

ST

SpecGraph team

For most teams, the AI inside SpecGraph is something they never think about. They run an interview, draft a section, ask for a tighter paragraph, and the model calls happen on infrastructure we manage. That works right up until the security review.

Enterprise buyers ask a sharper question: where do our prompts go?A spec is not marketing copy. It holds the architecture of systems that don't exist yet, the security model, the integration list, the risks a team has decided to accept. Every interview turn sends some of that to a model. Procurement wants to know whose account the model runs in, whose logs record the call, and whose budget it spends.

From today, an organisation can answer all three with “ours”.

How it works

An owner or admin opens Settings and switches the organisation's AI model from Managed to Bring your own. They point SpecGraph at their own Claude deployment: typically Azure AI Foundry, sitting behind Azure API Management acting as the AI gateway. They enter the gateway's base URL, the header it expects for its key, and the key itself.

  • The key field is write-only. Once saved, the screen shows only its last four characters.
  • Keys are encrypted at rest with per-row envelope encryption (AES-256-GCM). Only our server fetches the decrypted key, at call time. It is never sent to a browser.
  • Each model tier has its own deployment name and its own Test button. A test makes a one-token call and shows any error verbatim, so a policy denial, a missing deployment or a wrong key is obvious before anyone starts an interview.

From then on, intake, the interview, the Improve menu, brief generation, wish merging and conflict checks all call the organisation's endpoint. The wire protocol doesn't change. The gateway is a transparent proxy in front of Foundry.

Your gateway, your limits

The point of putting API Management in front of Foundry is policy. Azure's llm-token-limitpolicy counts prompt and completion tokens against a quota window, supports Claude's response shape, and handles streaming on recent APIM versions. A platform team can give SpecGraph its own APIM product with a monthly cap, and the cap is enforced on their side of the wire. Nobody has to trust us to stay inside a budget. The gateway enforces it.

The same goes for logging, network rules and regional placement. Whatever the organisation already applies to its Claude traffic applies to SpecGraph traffic, because it is the same traffic.

A security review doesn't ask “is your AI good?” It asks “whose account does it run in?” Bring your own Claude lets the answer be yours.

Managed stays the default

Nothing changes for organisations that don't opt in. Managed mode remains the default, needs no setup, and is one toggle away if a team wants to switch back. Voice is the one exception on the other side: speech-to-text and text-to-speech aren't something a Claude deployment provides, so voice features stay on managed credentials.

One behaviour is deliberate. Once an organisation is in bring-your-own mode, its text calls do not quietly fall back to our managed models when its endpoint has a problem. If the gateway rejects a call, the user sees an error. A silent fallback would mean spec content leaving the boundary the organisation chose, and spend landing on a bill nobody approved. The routing decision is made on our server from the organisation's saved mode, not in the browser.

What stays where

To be precise about the boundary: bring your own moves model inference into your account. The prompts, which carry your spec content, are processed by your Claude deployment and pass through your gateway's logs and policies. The spec itself is still stored in SpecGraph, because that is where the team edits, reviews and seals it. If your review needs the storage question answered too, that is a separate conversation, and a fair one to have.

What you can do this week

  • Ask your platform team whether Claude is already in your Foundry catalogue and exposed through APIM. If it is, most of the work is done.
  • Create a dedicated APIM product for SpecGraph with its own token-limit policy, so spec work has its own cap instead of sharing one with every other internal tool.
  • Run the Test button on every tier before the first interview. Fix denials while it's one call, not twenty.

The model is the same Claude either way. What changes is who holds the keys, the limits and the logs. For a lot of organisations, that is the difference between a pilot and a no.

  • enterprise
  • byo-llm
  • azure
  • claude
  • security

Stop vibe-coding solo.Ship with the whole org aligned.

Coding agents are fast, and they are obedient: they build exactly what the spec says. SpecGraph makes the spec worth obeying. Every department on the record, conflicts settled before code, one sealed pack your agent works from.

Request access

0%