kagi-account-config
Skill190 starsChanged 8 months agoMITView on GitHub
Configure Kagi CLI credentials, profiles, lenses, custom bangs, redirects, site preferences, and account-backed assistants. Use when the user wants to inspect or change how Kagi authenticates, searches, or applies account settings.
- Reads credentials
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Use status to see credential presence and source.
- Distinctive: line 35
Use the auth wizard or explicit auth subcommands to set credentials:
- Distinctive: line 42
Never pass secrets on a shared shell command line.
- Distinctive: line 47
Use profiles when separate accounts or credential policies must coexist.
- Distinctive: line 54
Verify the selected profile before changing any setting.
- Very specific: line 77
Use each command's --help for the flags a mutation needs.
- Distinctive: line 96
no secret value appears in output or persisted scripts.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kagi Account Configuration
Inspect current state before changing it. Never print, echo, or paste stored credential values into output.
Credential model
| Credential | Main capabilities |
KAGI_SESSION_TOKEN | subscriber search, Quick Answer, Assistant, ask-page, translation, subscriber summarization |
KAGI_API_KEY | current Search API and Extract API |
KAGI_API_TOKEN | legacy summarize, FastGPT, and Enrichment APIs |
Environment variables override .kagi.toml. --profile NAME selects a named
profile. Base search prefers session auth when both search credentials are
available, unless preferred_auth = "api" is configured.
Inspect and verify auth
kagi auth status
kagi auth check
kagi usage --format prettyUse status to see credential presence and source. Use check when a
configured credential fails at request time.
Use the auth wizard or explicit auth subcommands to set credentials:
kagi auth
kagi auth set --session-token "https://kagi.com/search?token=..."Never pass secrets on a shared shell command line. Prefer the interactive wizard or protected environment injection in shared environments.
Profiles
Use profiles when separate accounts or credential policies must coexist.
kagi --profile work auth status
kagi --profile personal search "query" --format toonVerify the selected profile before changing any setting.
Search settings
Inspect before creating, updating, or deleting:
kagi lens list
kagi lens get "Default"
kagi bang custom list
kagi redirect list
kagi site-pref listExample custom bang:
kagi bang custom create \
"Docs" \
--trigger docs \
--template "https://docs.rs/releases/search?query=%s"Use each command's --help for the flags a mutation needs. Never delete or
overwrite an account setting unless the user asked for it.
Custom assistants
kagi assistant custom list
kagi assistant custom get "Researcher"Conversation and thread use belongs in kagi-assistant. This skill owns the
account-level configuration of custom assistants.
Completion criteria
Configuration work is complete when:
- you know the active profile and credential source;
- the requested setting is visible through its read command;
- no secret value appears in output or persisted scripts;
- unrelated account settings remain unchanged; and
- you made a destructive change only when the user asked for it.
In this repository6 other files it gives its agents.
- docs/llms.txtllms.txt
- kagi-cliSkill
- kagi-aiSkill
- kagi-assistantSkill
- kagi-monitoringSkill
- kagi-usageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

