BYOK Setup
BYOK stands for Bring Your Own Key. Instead of bundling AI costs into your subscription, Baulit lets you connect your own Anthropic API key. You pay Anthropic directly at their published rates with no markup from Baulit.
Why BYOK?
The BYOK model gives you three advantages that matter on a construction project.
- Privacy. Your project data is sent directly to Anthropic under your own account. Baulit never routes your data through a third-party aggregator or reseller.
- No markup. You pay exactly what Anthropic charges. Baulit does not add a per-call fee or percentage on top.
- You control the spend. You set your own usage limits in the Anthropic console. If you want a hard cap at $20/month, you configure that directly with Anthropic.
Getting Your Anthropic API Key
If you do not have an Anthropic account yet, follow these steps to create one and generate an API key.
Entering Your Key in Baulit
How Encryption Works
When you save your API key, Baulit encrypts it immediately using AES-256-GCM, a widely trusted encryption standard used in banking and government systems. The encrypted key is stored in Supabase. When an AI feature needs to call Anthropic, the key is decrypted in memory inside a secure Edge Function, used for the API call, and then discarded.
At no point is your plaintext key stored in the database, written to server logs, or exposed in network responses.
Testing Your Key
After saving your key, use the Test & Validate button in the AI Configuration panel. This sends a small test request to Anthropic to confirm that your key is valid and has sufficient permissions.
If the test succeeds, you will see a green confirmation message. If it fails, check the following:
- Key is expired or revoked. Go back to the Anthropic console and verify the key is still active.
- Insufficient funds. Anthropic requires a payment method on file. Make sure your billing is set up in the Anthropic console.
- Typo in the key. Delete the key in Baulit and re-paste it from your source.
Rotating Your Key
You should rotate your API key periodically or any time you suspect it may have been compromised. To rotate:
Removing Your Key
To disconnect AI features entirely, go to Settings → AI Configuration and click Remove Key. This deletes the encrypted key from the database. AI features will become unavailable until you enter a new key.
Removing your key does not affect your Anthropic account or billing. It only disconnects Baulit from using that key.
What Happens When Things Go Wrong
If your key becomes invalid (expired, revoked, or quota exceeded), Baulit handles it gracefully. AI buttons will show a clear error message explaining the issue and linking you to the AI Configuration settings. No data is lost, and no partial AI operations are applied to your project.