Observed since 20 Oct, 22:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Agentik - a CLI-first, modular agent framework that runs LLMs via OpenRouter.
Agentik is a developer‑friendly framework for building LLM agents that run via OpenRouter. It emphasizes: clean YAML configs, a batteries‑included CLI, pluggable tools with safety policies, rich JSONL transcripts, and a dev watcher for rapid inner‑loop iteration.
CLI Reference (with Windows PowerShell and macOS/Linux examples)
Windows (PowerShell)
pip install agentik-framework
macOS/Linux
pip install agentik-framework
Agentik uses OpenRouter for LLM calls. Provide your key via env var or store it in Agentik’s RC.
Windows (PowerShell)
setx OPENROUTER_API_KEY "sk-or-XXXXXXXXXXXXXXXX"
# Close & reopen PowerShell so the env var is available in new sessions
macOS/Linux (bash/zsh)
echo 'export OPENROUTER_API_KEY="sk-or-XXXXXXXXXXXXXXXX"' >> ~/.bashrc
source ~/.bashrc # or: source ~/.zshrc
Store via Agentik RC (either scope):
agentik keys set openrouter sk-or-XXXXXXXXXXXXXXXX --global
# or
agentik keys set openrouter sk-or-XXXXXXXXXXXXXXXX --local
Windows (PowerShell)
agentik self-test
agentik models list --filter gpt --refresh # optional
macOS/Linux
agentik self-test
agentik models list --filter gpt --refresh
PowerShell
mkdir my-agent; cd my-agent
agentik init . --template basic --name "My Agent Project"
macOS/Linux
mkdir my-agent && cd my-agent
agentik init . --template basic --name "My Agent Project"
PowerShell
agentik new agent research `
--template basic `
--tools http_fetch,html_to_text,write_file `
--with-tests `
--to .
macOS/Linux
agentik new agent research \
--template basic \
--tools http_fetch,html_to_text,write_file \
--with-tests \
--to .
agents/agent.yaml)agent:
name: ResearchBot
goal: "Research and summarize information."
loop:
max_steps: 3
reflect: true
llm:
model: openai/gpt-4o-mini
temperature: 0.3
memory:
type: json
path: ./memory/research.json
policies:
allow_network: true
allow_filesystem: true
tools:
- http_fetch
- html_to_text
- write_file
PowerShell
agentik run .\agents\agent.yaml `
-p "Summarize the main differences between GPT-4o and small LLMs in 5 bullets." `
--profile fast `
--stream `
--save-transcript .\runs\first-run.jsonl
macOS/Linux
agentik run ./agents/agent.yaml \
-p "Summarize the main differences between GPT-4o and small LLMs in 5 bullets." \
--profile fast \
--stream \
--save-transcript ./runs/first-run.jsonl
PowerShell tip: quote your globs (e.g.,
'**/*.py') so the shell doesn’t expand them.
PowerShell
agentik dev watch .\agents\agent.yaml `
--prompt "Summarize this project in 3 bullets." `
--path . `
--include '**/*.py' --include '**/*.yaml' --include 'templates/**' `
--exclude '.venv/**' --exclude 'runs/**' `
--save-transcripts .\runs `
--profile dev `
--stream
macOS/Linux
agentik dev watch ./agents/agent.yaml \
--prompt "Summarize this project in 3 bullets." \
--path . \
--include '**/*.py' --include '**/*.yaml' --include 'templates/**' \
--exclude '.venv/**' --exclude 'runs/**' \
--save-transcripts ./runs \
--profile dev \
--stream
YAML config defines the agent (goal, loop), LLM (model, temperature), memory store, policies, and tools.
Profiles (CLI --profile) apply overrides:
fast: {max_steps=2, reflect=false, temperature=0.2}thorough: {max_steps=6, reflect=true, temperature=0.3}deterministic: {temperature=0.0, reflect=false}creative: {temperature=0.9, reflect=false}cheap: {temperature=0.2} (keeps configured model)dev: {max_steps=3, reflect=false, temperature=0.3}Precedence: YAML → RC/env → CLI overrides → profile overrides.
Below, every command shows a signature and examples for Windows PowerShell and macOS/Linux.
agentik versionPrint CLI version.
PowerShell
agentik version
macOS/Linux
agentik version
agentik self-testShow Python/OS info, OpenRouter key presence, and RC location.
PowerShell
agentik self-test
macOS/Linux
agentik self-test
agentik initagentik init [PATH] --template TEXT --force --name TEXT
PATH default .--template default basic--force overwrite existing files--name project name overridePowerShell
agentik init . --template basic --name "Demo"
macOS/Linux
agentik init . --template basic --name "Demo"
agentik new agentagentik new agent NAME \
--template TEXT \
--tools "t1,t2" \
--memory [dict|json] \
--memory-path PATH \
--to DIR \
--with-tests \
--force
PowerShell
agentik new agent helper `
--template basic `
--tools http_fetch,html_to_text `
--memory json `
--memory-path .\memory\agent.json `
--to . `
--with-tests `
--force
macOS/Linux
agentik new agent helper \
--template basic \
--tools http_fetch,html_to_text \
--memory json \
--memory-path ./memory/agent.json \
--to . \
--with-tests \
--force
agentik new toolagentik new tool NAME --template [python] --to DIR --with-tests --force
PowerShell
agentik new tool web_fetcher --template python --to . --with-tests --force
macOS/Linux
agentik new tool web_fetcher --template python --to . --with-tests --force
agentik template listList built‑ins.
PowerShell
agentik template list
macOS/Linux
agentik template list
agentik template applyagentik template apply kind/name --to DIR --force --name TEXT
PowerShell
agentik template apply agent/basic --to . --force --name MyBot
macOS/Linux
agentik template apply agent/basic --to . --force --name MyBot
agentik template pullPull a git repo or zip into templates/third_party.
PowerShell
agentik template pull https://example.com/my-templates.zip --to .
macOS/Linux
agentik template pull https://example.com/my-templates.zip --to .
agentik runagentik run CONFIG \
-p/--prompt TEXT \
--model TEXT \
--temperature FLOAT \
--stream \
--dry-run \
--save-transcript PATH \
--profile [fast|thorough|deterministic|creative|cheap|dev|none] \
--tag TAG (repeatable) \
--note TEXT \
--run-id TEXT \
--obs-max-chars INT
PowerShell
agentik run .\agents\agent.yaml `
-p "Five bullet summary of topic X" `
--profile fast `
--stream `
--save-transcript .\runs\out.jsonl
macOS/Linux
agentik run ./agents/agent.yaml \
-p "Five bullet summary of topic X" \
--profile fast \
--stream \
--save-transcript ./runs/out.jsonl
agentik dev watchagentik dev watch CONFIG \
-p/--prompt TEXT \
--prompt-file PATH \
--path PATH # repeatable; default "." \
--include GLOB # repeatable; default ["**/*.py", "**/*.yml", "**/*.yaml", "**/*.json", "**/*.md", "templates/**", "tools/**"] \
--exclude GLOB # repeatable \
--interval FLOAT # default 0.6 \
--debounce FLOAT # default 0.5 \
--clear/--no-clear # default clear \
--stream/--no-stream # default stream \
--profile dev # default "dev" \
--save-transcripts DIR \
--obs-max-chars INT # default 800 \
--no-initial-run \
--tag TAG # repeatable; default ["dev"] \
--note TEXT
PowerShell
agentik dev watch .\agents\agent.yaml `
--prompt "Echo the date" `
--include '**/*.py' `
--exclude '.venv/**' `
--save-transcripts .\runs
macOS/Linux
agentik dev watch ./agents/agent.yaml \
--prompt "Echo the date" \
--include '**/*.py' \
--exclude '.venv/**' \
--save-transcripts ./runs
agentik keys set openrouterStore an API key in RC.
PowerShell
agentik keys set openrouter sk-or-... --global
# or
agentik keys set openrouter sk-or-... --local
macOS/Linux
agentik keys set openrouter sk-or-... --global
# or
agentik keys set openrouter sk-or-... --local
agentik keys showDisplay masked key (env & RC) and RC scope/path.
PowerShell
agentik keys show
macOS/Linux
agentik keys show
agentik models listList OpenRouter models (with optional cache bypass).
PowerShell
agentik models list --filter gpt --refresh
macOS/Linux
agentik models list --filter gpt --refresh
agentik tools listList discoverable tools.
PowerShell
agentik tools list
macOS/Linux
agentik tools list
agentik tools info NAMEShow class & description.
PowerShell
agentik tools info http_fetch
macOS/Linux
agentik tools info http_fetch
agentik tools run NAMECall a tool directly (no agent loop). Values auto‑coerce: true/false → bool; 1→int; 1.2→float; else string. Quote values with spaces/HTML.
PowerShell
agentik tools run http_fetch --arg url=https://example.com --arg ttl=3600 --arg allow_network=true --json
agentik tools run html_to_text --arg "html=<p>Hello</p>" --arg keep_newlines=true --json
agentik tools run write_file --arg path=out\hello.txt --arg "content=Hello" --arg allow_filesystem=true --json
macOS/Linux
agentik tools run http_fetch --arg url=https://example.com --arg ttl=3600 --arg allow_network=true --json
agentik tools run html_to_text --arg 'html=<p>Hello</p>' --arg keep_newlines=true --json
agentik tools run write_file --arg path=out/hello.txt --arg 'content=Hello' --arg allow_filesystem=true --json
agentik validate fileValidate YAML; optionally print effective config after CLI overrides.
PowerShell
agentik validate file .\agents\agent.yaml `
--show-effective `
--model openai/gpt-4o-mini `
--temperature 0.2 `
--max-steps 2
macOS/Linux
agentik validate file ./agents/agent.yaml \
--show-effective \
--model openai/gpt-4o-mini \
--temperature 0.2 \
--max-steps 2
agentik batch runRun prompts from CSV/JSONL and write JSONL results.
PowerShell
agentik batch run .\prompts.jsonl `
--column prompt `
--out .\results.jsonl `
--model openai/gpt-4o-mini `
--temperature 0.2
macOS/Linux
agentik batch run ./prompts.jsonl \
--column prompt \
--out ./results.jsonl \
--model openai/gpt-4o-mini \
--temperature 0.2
agentik memory initInitialize store and add an initial record.
PowerShell
agentik memory init --type json --path .\memory\agentik.json
macOS/Linux
agentik memory init --type json --path ./memory/agentik.json
agentik memory recallPowerShell
agentik memory recall --n 10 --config .\agents\agent.yaml
macOS/Linux
agentik memory recall --n 10 --config ./agents/agent.yaml
agentik memory summarizePowerShell
agentik memory summarize --n 20 --max-chars 1200 --config .\agents\agent.yaml
macOS/Linux
agentik memory summarize --n 20 --max-chars 1200 --config ./agents/agent.yaml
agentik memory clearPowerShell
agentik memory clear --config .\agents\agent.yaml
macOS/Linux
agentik memory clear --config ./agents/agent.yaml
agentik memory pathPowerShell
agentik memory path --config .\agents\agent.yaml
macOS/Linux
agentik memory path --config ./agents/agent.yaml
agentik eval runEach JSONL line should have prompt, and optional expect_contains[] and/or expect_regex.
PowerShell
agentik eval run .\tests.jsonl --config .\agents\agent.yaml --out .\eval_results.jsonl
macOS/Linux
agentik eval run ./tests.jsonl --config ./agents/agent.yaml --out ./eval_results.jsonl
agentik config pathShow the .agentikrc path for a scope.
PowerShell
agentik config path --global
agentik config path --local
macOS/Linux
agentik config path --global
agentik config path --local
Selected built‑ins:
http_fetch(url, ttl, timeout, max_bytes, headers, allow_network) → {ok, data, error, meta} (data.text, data.status, cache info)html_to_text(html, keep_newlines, drop_links, max_chars) → plaintextwrite_file(path, content, encoding, overwrite, allow_abs, allow_filesystem) → safe file writerPolicies are enforced by config:
policies:
allow_network: true | false
allow_filesystem: true | false
If a tool requires a disabled capability, the call is blocked and recorded in observations/transcripts.
Add --save-transcript PATH (single run) or --save-transcripts DIR (dev watch) to write JSONL transcripts. Summaries include steps, token counts, timings, and cost if available.
Optional pricing overrides (USD / 1K tokens):
PowerShell
$env:AGENTIK_PRICE_PROMPT_PER_1K = "0.50"
$env:AGENTIK_PRICE_COMPLETION_PER_1K = "1.50"
macOS/Linux
export AGENTIK_PRICE_PROMPT_PER_1K="0.50"
export AGENTIK_PRICE_COMPLETION_PER_1K="1.50"
| Area | Command | Key Options | ||||
|---|---|---|---|---|---|---|
| Version | agentik version | – | ||||
| Self‑test | agentik self-test | – | ||||
| Init | agentik init [PATH] | --template, --force, --name | ||||
| Run | agentik run CONFIG | -p, --model, --temperature, --stream, --dry-run, --save-transcript, --profile, --tag, --note, --run-id, --obs-max-chars | ||||
| Keys | agentik keys set openrouter | --global or --local | ||||
| Keys | agentik keys show | – | ||||
| Models | agentik models list | --filter, --refresh | ||||
| New | agentik new agent NAME | --template, --tools, --memory, --memory-path, --to, --with-tests, --force | ||||
| New | agentik new tool NAME | --template, --to, --with-tests, --force | ||||
| Templates | agentik template list/apply/pull | as above | ||||
| Tools | agentik tools list/info/run | --arg, --json | ||||
| Validate | agentik validate file CONFIG | --show-effective, --model, --temperature, --max-steps | ||||
| Batch | agentik batch run FILE | --column, --out, --model, --temperature | ||||
| Memory | agentik memory {init recall summarize clear path} | see above | ||||
| Eval | agentik eval run FILE.jsonl | --config, --out | ||||
| Dev | agentik dev watch CONFIG | -p/--prompt-file, --path, --include, --exclude, --interval, --debounce, --clear, --stream, --profile, --save-transcripts, --obs-max-chars, --no-initial-run, --tag, --note | ||||
| Config | agentik config path | --global or --local |
You’re set. Keep this open while you iterate; pair it with agentik dev watch for the fastest edit‑run loop.
“Network error talking to OpenRouter.” Confirm your key in the current shell:
echo $env:OPENROUTER_API_KEYecho $OPENROUTER_API_KEY
Then try: agentik models list --refresh. Behind a proxy? Set HTTP_PROXY/HTTPS_PROXY.Dev watcher: “unexpected extra arguments …”
--include '**/*.py' (single quotes).Auth error / missing key: set OPENROUTER_API_KEY or run agentik keys set openrouter ....
Rate limited: add delays, batch, or upgrade your OpenRouter plan.
Network error: check connectivity or proxy settings (HTTP_PROXY, HTTPS_PROXY).
PowerShell globbing: quote globs, e.g. --include '**/*.py'.
ruff check . and black .pytest -qHappy building with Agentik!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.5 | 22 Aug 2025 | 15 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:56a1a48df2594d0f64ab02dccba1ef2a87e5fa35d69da0d2171eccd8c0024536