spacr.qt.ai.keys

API key store — LEGACY.

The AI Console now shells out to the vendor coding-agent CLIs (claude / codex / gemini), each of which authenticates against the user’s chat subscription instead of a metered API key. Nothing in the Qt GUI uses API keys anymore.

The module is kept as a thin stub so any external code that imported spacr.qt.ai.keys doesn’t break — every function returns “not configured”.

Functions

delete_key(→ None)

No-op — CLI-based providers do not store API keys.

get_key(→ Optional[str])

Always None — the CLI-based providers don't take API keys.

set_key(→ bool)

No-op — CLI-based providers do not store API keys. Always False.

source_of(→ str)

Return a compat label indicating the CLI-login model.

Module Contents

spacr.qt.ai.keys.delete_key(provider: str) → None[source]

No-op — CLI-based providers do not store API keys.

Parameters:

provider – AI provider name; accepted for API compatibility and ignored.

spacr.qt.ai.keys.get_key(provider: str) → str | None[source]

Always None — the CLI-based providers don’t take API keys.

Parameters:

provider – AI provider name; accepted for API compatibility and ignored.

spacr.qt.ai.keys.set_key(provider: str, key: str) → bool[source]

No-op — CLI-based providers do not store API keys. Always False.

Parameters:
  • provider – AI provider name; accepted for API compatibility and ignored.

  • key – API key; accepted for API compatibility, ignored and never stored.

spacr.qt.ai.keys.source_of(provider: str) → str[source]

Return a compat label indicating the CLI-login model.

Parameters:

provider – AI provider name; accepted for API compatibility and ignored, since every provider gets the same label.