Skip to content

How Configure Workers AI as models? #140

@kiran-4444

Description

@kiran-4444

I tried using this config:

{
    "meta": {
        "lastTouchedVersion": "2026.1.24-3",
        "lastTouchedAt": "2026-02-02T18:31:09.575Z"
    },
    "agents": {
        "defaults": {
            "model": {
                "primary": "workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast"
            }
        }
    },
    "models": {
        "mode": "merge",
        "providers": {
            "workers-ai": {
                "baseUrl": "https://api.cloudflare.com/client/v4/accounts/account_id/ai/v1",
                "apiKey": "key",
                "api": "openai-completions",
                "models": [
                    {
                        "id": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
                        "name": "Llama 3.3 70B"
                    },
                    {
                        "id": "@cf/meta/llama-3.1-8b-instruct",
                        "name": "Llama 3.1 8B"
                    },
                    {
                        "id": "@cf/mistral/mistral-7b-instruct-v0.2",
                        "name": "Mistral 7B"
                    },
                    {
                        "id": "@cf/qwen/qwen1.5-14b-chat-awq",
                        "name": "Qwen 1.5 14B"
                    },
                    {
                        "id": "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
                        "name": "DeepSeek R1 32B"
                    }
                ]
            }
        }
    },
    "messages": {
        "ackReactionScope": "group-mentions"
    },
    "commands": {
        "native": "auto",
        "nativeSkills": "auto"
    },
    "channels": {
        "discord": {
            "token": "token",
            "allowBots": true,
            "groupPolicy": "allowlist",
            "actions": {
                "reactions": true,
                "emojiUploads": true,
                "messages": true,
                "memberInfo": true,
                "channelInfo": true
            },
            "guilds": {
                "guild": {}
            },
            "heartbeat": {
                "showOk": false,
                "showAlerts": true
            }
        }
    },
    "gateway": {
        "port": 18789,
        "mode": "local",
        "auth": {
            "token": "token"
        },
        "trustedProxies": [
            "10.1.0.0"
        ]
    },
    "plugins": {
        "entries": {
            "discord": {
                "enabled": true
            }
        }
    }
}

But somehow, upon saving this in Clawbot Control, the default model is changing back to opus 4.5. Am I doing something wrong here? sorry if this is naive, but I'm a bit new to cloudflare environment. Thanks!

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