[GH-ISSUE #5004] [Engine] Multiple API keys with per-key concurrency limits and reserved capacity #2308

Open
opened 2026-11-04 01:58:20 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @DJBarone on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5004

What problem would this solve?

I run Strata as a shared local AI server for multiple clients, including Hermes Agent and Home Assistant.

My server uses --parallel 2. Hermes can submit enough concurrent requests to occupy both parallel slots. When that happens, a latency-sensitive Home Assistant request must wait even though the second slot was enabled partly to preserve capacity for automation and voice requests.

Strata currently accepts a server API key, but I could not find a way to:

  • Configure multiple client API keys
  • Limit concurrency independently for each key
  • Reserve capacity for a specific client
  • Prevent one client from consuming every parallel slot

Increasing --parallel does not solve the allocation problem because the same client can consume the additional capacity.

Environment

  • Strata version: 0.2.8
  • Build/engine version: 0.1.54
  • Operating system: Windows
  • GPU: NVIDIA GeForce RTX 3090 Ti, 24 GB VRAM
  • System RAM: 128 GB
  • Model: Qwen3.8-Flash-Next UD-Q4_K_XL
  • Context: 262,144 tokens
  • KV cache: Streamed 8-bit
  • Parallel requests: 2
  • API: OpenAI-compatible
  • Clients: Hermes Agent and Home Assistant

Proposed feature

Add support for multiple API keys with independent admission controls.

For example:

{
  "parallel": 2,
  "api_keys": {
    "hermes-key": {
      "max_concurrent": 1
    },
    "home-assistant-key": {
      "max_concurrent": 1,
      "reserved_capacity": 1
    }
  }
}

Originally created by @DJBarone on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5004 ## What problem would this solve? I run Strata as a shared local AI server for multiple clients, including Hermes Agent and Home Assistant. My server uses `--parallel 2`. Hermes can submit enough concurrent requests to occupy both parallel slots. When that happens, a latency-sensitive Home Assistant request must wait even though the second slot was enabled partly to preserve capacity for automation and voice requests. Strata currently accepts a server API key, but I could not find a way to: - Configure multiple client API keys - Limit concurrency independently for each key - Reserve capacity for a specific client - Prevent one client from consuming every parallel slot Increasing `--parallel` does not solve the allocation problem because the same client can consume the additional capacity. ## Environment - Strata version: 0.2.8 - Build/engine version: 0.1.54 - Operating system: Windows - GPU: NVIDIA GeForce RTX 3090 Ti, 24 GB VRAM - System RAM: 128 GB - Model: Qwen3.8-Flash-Next UD-Q4_K_XL - Context: 262,144 tokens - KV cache: Streamed 8-bit - Parallel requests: 2 - API: OpenAI-compatible - Clients: Hermes Agent and Home Assistant ## Proposed feature Add support for multiple API keys with independent admission controls. For example: ```json { "parallel": 2, "api_keys": { "hermes-key": { "max_concurrent": 1 }, "home-assistant-key": { "max_concurrent": 1, "reserved_capacity": 1 } } }
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or strata --version).
  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6580280545 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `strata --version`). - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6580422230 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): Thanks, this follows the format now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2308
No description provided.