Skip to content

Models + onboarding: provider presets (incl. GLM, Kimi), per-agent models, jsclaw onboard wizard #25

Closed

Description

@melvincarvalho

openclaw-parity onboarding and model configuration, scoped to what the Claude Code runtime really supports.

Models

  • config.model (default agent model), config.heartbeatModel (openclaw's biggest cost lever: cheap model for the 48-cycles/day autonomy loop), group.model, and per-run input.model — precedence: input > group > config
  • Provider routing via Anthropic-compatible endpoints: providerBaseUrl / providerAuthToken config (with ${ENV} expansion) plus a whitelisted passthrough of host env (Bedrock/Vertex switches, AWS/GCP credentials)
  • Security fix riding along: ANTHROPIC_API_KEY moves out of docker argv (ps-visible — audit finding Identity files and Channel interface #4) into stdin-delivered providerEnv, same as the MCP secrets path

Provider presets (src/providers.js)

anthropic (native) · zai — GLM 4.x · moonshot — Kimi K2 · bedrock · vertex · custom/proxy (LiteLLM recipe). GLM and Kimi work today through their Anthropic-compatible endpoints — no proxy needed.

jsclaw onboard

Interactive wizard (node:readline/promises, zero-dep): environment checks (node, docker, image — offers to build), provider + key (written as ${ENV_VAR} references, never literals), default + heartbeat model selection, groups/main scaffold with starter SOUL.md/HEARTBEAT.md, gateway token, next-steps summary. Pure config-building logic factored out and unit-tested.

Follow-up ticket: live verification of the GLM/Kimi preset endpoints (needs API keys).

v0.0.11, no npm publish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions