Skip to content

About

Set up Autark in your AI coding tools with one command

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autark

npm license

Set up Autark in the AI tools you already have.

npx @autarkai/cli init

Detects what you have installed, writes the config where it can, and prints exact steps where it cannot.

What it does

Tool Action
Hermes Agent Adds providers.autark to config.yaml (every profile)
OpenCode Merges an autark provider into opencode.json
Cursor Prints the Settings → Models walkthrough
Claude Code Prints the Anthropic proxy setup

Cursor and Claude Code are not automatable: Cursor's model settings live in its own state, not a config file, and Claude Code speaks the Anthropic API so it needs a translation proxy. The installer says so rather than pretending.

Commands

npx @autarkai/cli init              # detect and configure
npx @autarkai/cli init --key <key>  # use an existing key
npx @autarkai/cli status            # show what was detected

What it will not do

It never rewrites a config it does not understand.

  • JSON is parsed, merged and written. Your existing providers and your chosen model are preserved.
  • YAML is not parsed (no dependencies). The installer looks for a top-level providers: block and appends one entry to it. If that block is missing, it refuses and prints the snippet instead of guessing where it belongs.
  • Every file it edits is backed up first, to <path>.autark-backup-<timestamp>.

A corrupted config costs more trust than the install saves, so refusing is always an acceptable outcome.

Your key

The installer writes key_env: AUTARK_API_KEY into Hermes configs rather than the key itself, so the secret never lands in a file you might commit:

export AUTARK_API_KEY=autark_sk_...

OpenCode has no equivalent, so the key is written into opencode.json there. That file is normally local-only; keep it out of version control.

Getting a key

Models

autark-agent   autark-pro   autark-deep
autark-agent-private   autark-pro-private   autark-deep-private

The -private variants route only to providers that contractually never retain or train on prompts.

License

MIT

About

Set up Autark in your AI coding tools with one command

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages