Skip to content

Commit 2439ca0

Browse files
committed
docs(cli): list all supported LLM providers
Signed-off-by: Deepak Jain <deepujain@gmail.com>
1 parent d486d0a commit 2439ca0

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

src/skillspector/cli.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,9 @@ def scan(
524524
525525
SKILLSPECTOR_PROVIDER Active LLM provider: openai | anthropic |
526526
anthropic_proxy | bedrock | nv_build |
527-
nv_inference. Defaults to the NVIDIA path
527+
nv_inference | ollama | azure_openai |
528+
openai_compatible | claude_cli | codex_cli |
529+
gemini_cli. Defaults to the NVIDIA path
528530
(nv_inference, falling back to nv_build in
529531
OSS builds).
530532
SKILLSPECTOR_MODEL Override the active provider's default
@@ -535,10 +537,19 @@ def scan(
535537
536538
OPENAI_API_KEY [+ OPENAI_BASE_URL] for SKILLSPECTOR_PROVIDER=openai
537539
ANTHROPIC_API_KEY for SKILLSPECTOR_PROVIDER=anthropic
540+
ANTHROPIC_PROXY_API_KEY +
541+
ANTHROPIC_PROXY_ENDPOINT_URL for anthropic_proxy
538542
AWS_PROFILE (optional) + AWS_REGION for SKILLSPECTOR_PROVIDER=bedrock
539543
(AWS_PROFILE: standard boto3 credential
540544
chain when unset; AWS_REGION default: us-west-2)
541545
NVIDIA_INFERENCE_KEY for the NVIDIA providers
546+
AZURE_OPENAI_API_KEY +
547+
AZURE_OPENAI_ENDPOINT for azure_openai
548+
SKILLSPECTOR_COMPAT_API_KEY +
549+
SKILLSPECTOR_COMPAT_BASE_URL for openai_compatible
550+
551+
ollama uses the local Ollama service. claude_cli, codex_cli, and
552+
gemini_cli use their CLI's existing local authentication session.
542553
"""
543554
if mcp_registry:
544555
if recursive or baseline is not None or show_suppressed or yara_rules_dir is not None:

tests/unit/test_cli.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ def test_cli_version() -> None:
8888
assert "v" in result.output
8989

9090

91+
def test_cli_scan_help_lists_every_available_provider() -> None:
92+
"""Built-in help names every provider accepted by the selector."""
93+
result = runner.invoke(app, ["scan", "--help"])
94+
95+
assert result.exit_code == 0
96+
for provider in (
97+
"openai",
98+
"anthropic",
99+
"anthropic_proxy",
100+
"bedrock",
101+
"nv_build",
102+
"nv_inference",
103+
"ollama",
104+
"azure_openai",
105+
"openai_compatible",
106+
"claude_cli",
107+
"codex_cli",
108+
"gemini_cli",
109+
):
110+
assert provider in result.output
111+
112+
91113
def test_cli_scan_local_directory(tmp_path: Path) -> None:
92114
"""scan with local directory runs graph and prints report."""
93115
(tmp_path / "SKILL.md").write_text("---\nname: scan-test\n---\n# Safe", encoding="utf-8")

0 commit comments

Comments
 (0)