provider-manager
Skill2 starsChanged 6 months agoMITView on GitHub
Use when configuring ArkSpace providers, fixing missing provider URLs or API keys, checking provider readiness, or setting up multiple API key rotation.
- Reads credentials
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-contextSkill
- defuddleSkill
- drive-meSkill
- json-canvasSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-kanbanSkill
- obsidian-markdownSkill
- orchestratorSkill
- prd-createSkill
- skill-managerSkill
- web-automationSkill
- web-extractSkill
- web-fetchSkill
- web-researchSkill
- web-searchSkill
- web-siteSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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
- Distinctive: line 10
Use this when a skill reports missing provider configuration, the user wants to set a self-hosted service URL, or a provider needs one or …
- Distinctive: line 14
Do not ask the user to find and edit config files by hand.
- Distinctive: line 78
Add API key references for future API-backed providers:
- Very specific: line 87
Use provider setup when a provider has ArkSpace defaults, such as Tavily, Exa, or Firecrawl.
- Distinctive: line 106
When a provider is missing:
- Distinctive: line 109
Ask whether to start setup now and present exactly two choices:
- Distinctive: line 113
If the current host can execute shell commands and can provide interactive secret input, run the setup command for them.
- Very specific: line 114
If the host shell is non-interactive, do not run --wizard through that tool.
- Distinctive: line 116
If setup succeeds, rerun or tell the user to rerun the original skill invocation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Provider Manager
Manage provider configuration as a guided runtime setup, not as manual file editing.
Use this when a skill reports missing provider configuration, the user wants to set a self-hosted service URL, or a provider needs one or more API keys. Public package files only declare provider capabilities. Personal endpoints and key references live in user config.
Configuration Rule
Do not ask the user to find and edit config files by hand. Help them run the setup command.
Provider config defaults to:
~/.config/ark-space/providers.jsonProvider state defaults to:
~/.local/state/ark-space/provider-state.jsonProvider secrets default to:
~/.config/ark-space/secrets.jsonOverride paths with ARKSPACE_PROVIDER_CONFIG, ARKSPACE_PROVIDER_STATE, ARKSPACE_PROVIDER_SECRETS, --config-path, or --state-path.
Common Commands
Resolve the installed ArkSpace package root before running commands. Replace <installed-arkspace-path> with the directory two levels above the loaded ArkSpace SKILL.md, such as /Users/<user>/.claude/plugins/cache/ark-space/ark-space/0.2.0. Use the installed package path, not a repository-relative command, in installed host sessions.
Show paths:
python3 <installed-arkspace-path>/scripts/arkspace.py provider pathsConfigure a self-hosted SearXNG endpoint:
python3 <installed-arkspace-path>/scripts/arkspace.py provider configure searxng --base-url "https://searx.example.org"Configure API-backed skills with ArkSpace defaults:
python3 <installed-arkspace-path>/scripts/arkspace.py provider setup tavily --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check tavily --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider setup exa --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check exa --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider setup firecrawl --wizard --key-count 2
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_search
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability structured_extract
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_interact
python3 <installed-arkspace-path>/scripts/arkspace.py provider check firecrawl --capability web_monitorInspect provider config without secret values:
python3 <installed-arkspace-path>/scripts/arkspace.py provider showResolve a provider before use:
python3 <installed-arkspace-path>/scripts/arkspace.py provider resolve searxng --capability web_searchAdd API key references for future API-backed providers:
python3 <installed-arkspace-path>/scripts/arkspace.py provider add-key brave-search --env BRAVE_API_KEY_1 --header X-Subscription-Token
python3 <installed-arkspace-path>/scripts/arkspace.py provider add-key brave-search --env BRAVE_API_KEY_2 --header X-Subscription-TokenThe provider config stores env:BRAVE_API_KEY_1, env:TAVILY_API_KEY_1, env:EXA_API_KEY_1, or env:FIRECRAWL_API_KEY_1 references. When --save-secret is used, the actual key values are stored in the local private secrets file with 0600 permissions.
Use provider setup when a provider has ArkSpace defaults, such as Tavily, Exa, or Firecrawl. Use provider configure and provider add-key as advanced commands for self-hosted endpoints or new providers that do not have setup defaults yet.
Key Rotation
ArkSpace provider runtime supports multiple API key references per provider. It resolves available env:<NAME> values from the process environment first, then ArkSpace's private secrets file, selects the least recently used key, and stores cooldown state locally after failures.
Default rotation behavior:
| Setting | Default |
| Strategy | round_robin using least recently used state |
| Retry statuses | 429,500,502,503,504 |
| Disable statuses | 401,403 |
| Cooldown | 300 seconds |
Provider scripts should record request results through arkspace_runtime.provider_config.record_provider_result() when they add API-backed calls.
Agent Behavior
When a provider is missing:
- Explain the exact capability that is missing, such as
web_search. - Ask whether to start setup now and present exactly two choices:
- "Start setup wizard" - start interactive setup with the setup command.
- "Not now" - leave the provider unconfigured; if the user still wants results, ask whether to continue with a clearly labeled non-ArkSpace fallback.
- Give the one setup command that fixes it. For Tavily, Exa, or Firecrawl API keys, prefer
provider setup <provider> --wizard. - If the current host can execute shell commands and can provide interactive secret input, run the setup command for them.
- If the host shell is non-interactive, do not run
--wizardthrough that tool. Offer either interactive terminal setup or saving a pasted key throughprovider setup tavily --save-secret TAVILY_API_KEY --secret-stdin,provider setup exa --save-secret EXA_API_KEY --secret-stdin, orprovider setup firecrawl --save-secret FIRECRAWL_API_KEY --secret-stdin. - Re-run the provider check after setup.
- If setup succeeds, rerun or tell the user to rerun the original skill invocation.
For secrets, never ask the user to paste a raw API key into committed files. Use the private ArkSpace secrets file through --save-secret or environment variables.
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.

