whoami

command
v0.6.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command whoami reports which providers are configured and lists their models.

It reads the provider registry — the same one backing the package-level Complete — and asks each provider whether a usable API key resolves from the environment via AuthStatus. Nothing is sent to any provider; this only inspects local configuration, so it is a good way to confirm which keys are in place before running anything else.

Run it with whatever provider keys you have exported:

DEEPSEEK_API_KEY=sk-... go run ./example/llm/whoami
go run ./example/llm/whoami --models   # also list each configured model
go run ./example/llm/whoami --all      # also list unconfigured providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL