Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 908 Bytes

File metadata and controls

32 lines (26 loc) · 908 Bytes

Auth Store

Grambot stores credentials in .scout/auth.json. The file is read by the engine on startup and on demand by plugins.

Structure

{
  "telegram": { "type": "token", "token": "..." },
  "brave-search": { "type": "apiKey", "apiKey": "..." },
  "openai": { "type": "apiKey", "apiKey": "..." },
  "anthropic": { "type": "oauth", "refreshToken": "...", "accessToken": "..." },
  "nanobanana": { "type": "apiKey", "apiKey": "..." }
}

Auth entries are keyed by the identifier used by the plugin or provider. Providers always use the provider id.

CLI helpers

  • gram auth set <id> <key> <value> updates the auth store.
flowchart TD
  CLI[gram auth set] --> Auth[.scout/auth.json]
  Auth --> Plugins
Loading

Usage

  • Connectors read auth for tokens (e.g., Telegram).
  • Providers read auth for API keys or OAuth credentials.
  • Tool plugins read auth for external services.