Skip to main content

Manage API keys

On the Coding page, you manage API keys for employees. An API key gives access to the AI-Public OpenAI-compatible Coding endpoint.

Employees use this key in an external coding tool, such as OpenCode.

Employees

The Coding page shows employees within the allowed location scope. An employee must have a linked account before a key can be created.

Create a key

  1. Find the employee.
  2. Click the key icon.
  3. Choose the budget.
  4. Optionally enable automatic renewal.
  5. Optionally set a validity period.
  6. Click Save.

The API key is shown once. Copy the key immediately and share it securely with the employee.

Key visible only once

After closing the window, AI-Public cannot show the full API key again. If the key is lost, revoke the old key and create a new one.

Set a budget

Each key has a budget in US dollars. This matches how model costs are calculated.

You can:

  • set a budget per key
  • enable automatic renewal after usage
  • revoke the key when it is no longer needed

The list shows how much budget has been used per employee.

Set a validity period

You can limit a key with a start date and end date.

This is useful for temporary workshops, pilots or project periods. For example:

  • start: today at 10:00
  • end: today at 12:00

The key only works within that time window. Outside the time window, the key is rejected.

Create keys for a location

If you want to give several employees access at the same time, you can create keys for an entire location.

After creation, a document with the created keys opens automatically. Download or save this document immediately, because the full keys cannot be shown again later.

Revoke keys

Revoking a key means the employee can no longer use that key.

You can:

  • revoke one key for an employee
  • collectively revoke keys for a location

AI-Public asks for confirmation before keys are revoked.

Reporting and control

Usage through Coding is logged. This lets administrators see:

  • who uses the key
  • how many requests were made
  • what costs were incurred
  • which chats were created through the key

These details help keep usage and costs manageable.