Security

Protecting your API key

Your key carries your plan, your quota and your bill. Treat it like a password.

Self-check

Tick everything that is true today.


Where to store it

The safe pattern

Browsers should talk to your backend; only your backend talks to AuCore.

// your server — the key never leaves this process
app.post("/api/ask", async (req, res) => {
  const r = await fetch("BASE/chat/completions", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.AUCORE_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ model: "gpt-5.4-mini", messages: req.body.messages }),
  });
  res.json(await r.json());
});

Add your own authentication and rate limiting to that route, otherwise strangers can spend your quota through it.

Rotating a key

  1. Open your dashboard.
  2. Press Rotate key and copy the new value.
  3. Update your environment variables and redeploy.

Rotation takes effect immediately — the previous key stops working the moment the new one is issued, so deploy quickly to avoid a gap.

Signs of a leak

If you see any of these, rotate first and investigate afterwards. Rotation is free and instant.

Extra safety nets


Questions about a suspected compromise? Contact support — mention only the last four characters of the key.