Skip to content

rivetkit hard-depends on @rivet-dev/agent-os-core (~1.1 GB incl. AI SDKs) even when Agent OS is not used #5910

Closed

Description

@hoghweed

Environment

  • rivetkit 2.3.27, npm, Node 22, macOS arm64 and linux (Docker image build)

Expected

Docs list Agent OS as a separate integration (@rivet-dev/agentos). An app that only uses actors,
workflows, queues and cron should install rivetkit without the Agent OS runtime and AI SDKs.

Actual

rivetkit@2.3.27 lists "@rivet-dev/agent-os-core": "^0.1.1" under dependencies, which pulls in
@agentos-software/* and AI SDKs (@anthropic-ai/*, @google/*, @mistralai/*,
@mariozechner/pi-*).

Repro

mkdir lean && cd lean && npm init -y
npm install rivetkit@2.3.27
npm view rivetkit@2.3.27 dependencies | grep agent-os
npm explain @rivet-dev/agent-os-core
du -sh node_modules node_modules/@rivet-dev node_modules/@agentos-software

Measured

  • node_modules after npm install rivetkit@2.3.27: 1.8 GB — @rivet-dev 683 MB,
    @agentos-software 418 MB, engine CLI binary 97 MB, NAPI 41 MB.
  • ~1.1 GB of that is attributable to the Agent OS chain; it ships in every app/worker image and in
    self-hosted bundles, and widens the supply-chain review (several AI vendor SDKs we never call).

Question / suggested fix

Could @rivet-dev/agent-os-core become an optional or peer dependency (or move behind the
@rivet-dev/agentos package), so actor-only users get a lean install? If there's a supported way to
exclude it today, please document it.

Activity

  1. linear-code commented on Oct 20, 2026

    @linear-code
  2. NathanFlurry commented on Oct 20, 2026

    @NathanFlurry
    Member

    Hey! This was patched last night with 2.3.28. Can you give that a try and verify that fixes your issue?

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