Skip to content

Model flag (--model) is not applied during deployment #1

@kali-claw

Description

@kali-claw

Bug

The --model flag is accepted by deploy.sh (default: anthropic/claude-sonnet-4-5) and passed to vps-setup.sh as $MODEL, but it's never written to the config during onboarding or the JSON edit step.

As a result, deployed agents default to OpenClaw's built-in default (Opus) regardless of what --model is set to.

Expected behavior

The specified model should be written to agents.defaults.model in openclaw.json.

Suggested fix

Add to the Node.js config edit in vps-setup.sh:

config.agents = config.agents || {};
config.agents.defaults = config.agents.defaults || {};
config.agents.defaults.model = process.argv[4]; // MODEL param

Impact

Low — model can be changed easily after deployment via Telegram or SSH. But the script should do what it says.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions