v0.1.0GitHubnpm
Reference

Configuration

Skawld’s defaults are designed to disappear. Most apps will never set a config value — but when you need to tune retries, caching, or where state lives on disk, here’s the surface.

#Environment variables

Skawld reads only the provider keys at runtime. The other variables below are conventions used by the bundled examples; the Agent constructor never reads them directly.

env
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
SKAWLD_MODEL=gpt-5             # used by examples; ignored by Agent constructor
SKAWLD_CONFIG_DIR=.skawld      # session store + skills + agents
VariableRead by
ANTHROPIC_API_KEYAnthropicProvider (falls back to the Anthropic SDK’s own lookup).
OPENAI_API_KEYOpenAIChatCompletionsProvider, OpenAIResponsesProvider.
SKAWLD_MODELExample apps under examples/. Not read by the SDK.
SKAWLD_CONFIG_DIRExample apps. Use the configDir Agent option for programmatic control.

#.skawld directory

By default skawld stores per-project state under .skawld/ in the working directory. Override with configDir on Agent.

PathPurpose
.skawld/sessions.dbSQLite session store. Conversations, messages, tasks.
.skawld/skills/<name>/SKILL.mdSkill definitions loaded lazily on first session.
.skawld/agents/<name>.mdSubagent definitions loaded lazily on first session.

#Runtime knobs

Every behaviour you might want to tune lives on AgentOptions. The headline knobs:

OptionWhat it controls
maxRetriesRetry budget for retryable provider errors. Default 5.
maxOutputTokensPer-turn output cap. Omitted by default; Anthropic falls back to 32768, OpenAI omits the field on the wire.
maxTurnsHard cap on turns per run. Unbounded by default. Hitting it yields a turn-limit result rather than throwing.
cacheTtlPrompt-cache TTL hint ("5m" / "1h"). Anthropic-only; OpenAI ignores it.
includePartialMessagesEmit token-level partial_assistant deltas. Off by default.
cwdWorking directory passed to every tool execution.