Skip to content

feat(cli): add configurable OpenAI-compatible providers#6

Open
CripterHack wants to merge 2 commits intohexsecteam:mainfrom
CripterHack:feat/custom-openai-provider
Open

feat(cli): add configurable OpenAI-compatible providers#6
CripterHack wants to merge 2 commits intohexsecteam:mainfrom
CripterHack:feat/custom-openai-provider

Conversation

@CripterHack
Copy link
Copy Markdown

Add configurable OpenAI-compatible provider support and ignore local secrets.

This replaces the hard-coded provider selection with a runtime configuration flow stored in .HexSec, so the CLI can switch between OpenRouter, DeepSeek, and custom OpenAI-compatible endpoints without editing HexSecGPT.py. The custom provider ships with z.ai-compatible defaults, provider-specific API key prompts, compatibility for the legacy z.ai base URL, and regression coverage for provider resolution.

This also adds a repo-level .gitignore for .HexSec, env files, Python caches, virtual environments, coverage output, and editor artifacts so forks and pull requests do not accidentally include credentials or unnecessary local files.

Unify provider configuration behind a runtime registry so the CLI can switch between OpenRouter, DeepSeek, and custom OpenAI-compatible endpoints without code edits.

This adds per-provider API key prompts, z.ai defaults for the custom provider, compatibility for the legacy z.ai base URL, and regression tests for provider resolution and prompts.
Ignore the local HexSec credential file, Python caches, virtual environments, coverage output, and editor-specific files so forks and PRs do not leak sensitive or unnecessary data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant