Skip to content

[Enhancement] com.anthropic.ClaudeDesktop: what Cowork needs on the host, in case it helps #1405

Open

Description

@ajithakdev

Hi! I maintain claude-desktop-rpm, a script that installs the same Anthropic .deb natively on Fedora. I saw the package page says Cowork's KVM/QEMU environment isn't verified yet, so here is what we found it needs outside a sandbox, in case it saves someone time.

On app 5.11492.5 (x86_64), Cowork runs each task in a QEMU/KVM VM and needs:

  • /dev/kvm, and the user in the kvm group
  • /dev/vhost-vsock (the vhost_vsock module loaded)
  • qemu-system-x86_64 and virtiofsd (for folder sharing)
  • UEFI firmware at /usr/share/OVMF/OVMF_CODE.fd (or OVMF_CODE_4M.fd). A contributor traced that the app only checks that this file exists before it enables Cowork, and on a running VM QEMU was started without a firmware option.

The app looks for these at fixed host paths, so I'm not sure how much of it can work from inside a Flatpak. I haven't tested the FlatPark package myself, so take this as notes, not a bug report. Happy to try a test build if that would help.

Activity

  1. added
    enhancement
    on Nov 20, 2026
  2. jing2uo commented on Nov 20, 2026

    @jing2uo
    Collaborator

    Thanks for writing this up. It saved us a lot of digging. I checked your notes against the 5.11492.5 .deb, and they match what the app does, with a couple of corrections. The short version is that Cowork can't work inside this Flatpak as things stand.

    What the app checks before it enables Cowork

    The main process runs plain fs.access checks against fixed absolute paths:

    • QEMU: /usr/bin/qemu-system-x86_64 (/usr/bin/qemu-system-aarch64 on arm64)
    • Firmware: /usr/share/OVMF/OVMF_CODE_4M.fd, then /usr/share/OVMF/OVMF_CODE.fd (/usr/share/AAVMF/AAVMF_CODE.fd on arm64)
    • virtiofsd: /usr/libexec/virtiofsd or /usr/bin/virtiofsd. The copy bundled in resources/virtiofsd is only used as a fallback on Ubuntu 22.x. Everywhere else the app asks you to install virtiofsd on the host.
    • Devices: /dev/kvm and /dev/vhost-vsock, both read/write

    Two corrections to the notes:

    • The firmware path isn't only checked for existence. It is passed on to cowork-linux-helper as the firmware code path, together with a VARS template derived from it, and the helper is what starts QEMU.
    • The bundled virtiofsd only covers Ubuntu 22.x, so on Fedora a host virtiofsd is still required.

    Why this rules out the Flatpak

    Inside a Flatpak, /usr is the Freedesktop runtime, so none of those paths exist and the checks fail before anything is started. Granting device access doesn't help with that. We also looked at running the helper on the host through flatpak-spawn --host. That would deal with the execution side, but the availability checks happen in the sandboxed main process. Getting past them would mean patching the app's bundled JavaScript, and FlatPark ships the upstream application tree unmodified.

    So we'll treat Cowork as unsupported in this package, rather than "not yet verified", and update the package description to say so. Anyone who needs Cowork on Linux should use the native .deb, or your RPM on Fedora. No test build is needed, but thank you for offering.

    If Anthropic ever makes these paths configurable, for example through an environment variable or a setting, we could look at it again. If you're in touch with them, that would be the useful thing to ask for.

  3. changed the title [-]com.anthropic.ClaudeDesktop: what Cowork needs on the host, in case it helps[/-] [+][Enhancement] com.anthropic.ClaudeDesktop: what Cowork needs on the host, in case it helps[/+] on Nov 20, 2026
  4. ajithakdev commented on Nov 20, 2026

    @ajithakdev
    ContributorAuthor

    Thanks again for digging into this. I couldn't leave it alone, so I tried it, and Cowork now runs inside the FlatPark package (5.11492.5) on Fedora. The VM boots, the folder I pick mounts into it, and the shell works. I didn't patch the app or change the upstream tree.

    It does need host access you'd never want on by default: device access, the host OS read-only, and the Flatpak portal for running things on the host. QEMU, OVMF and virtiofsd also have to be installed on the host. So I agree the default package should stay as it is, but this could work as a documented opt-in for people who want Cowork.

    If that sounds useful, I'm happy to send it as a PR here (the launcher change plus a short docs page) so you can review it and it lives with the package. Would you rather have it in the main manifest behind an opt-in, or as a separate docs recipe?

  5. jing2uo commented on Nov 21, 2026

    @jing2uo
    Collaborator

    Thanks for testing this, that's great news. Yes, please send it as a PR.

    I'd go with the main manifest with an opt-in. The default permissions stay as they are, and the launcher change only kicks in after a user adds the overrides. When Cowork's paths or permissions aren't there, the app should start exactly as it does today. Put the docs page next to the package, with the exact flatpak override commands and the host packages to install, and say clearly what those overrides give up: running commands on the host through the Flatpak portal means the app is no longer really sandboxed. In the PR description, please also explain how the launcher gets past the app's fixed-path checks under /usr, so it's easy to review.

    We'll update the package description to match once it lands.

  6. ajithakdev commented on Nov 24, 2026

    @ajithakdev
    ContributorAuthor

    Thanks! The PR is up: #1562.

    Cowork stays off unless all three overrides are added, COWORK.md sits next to the package, and the description explains how the launcher gets past the /usr checks. I built it from the branch and tested it on 6.28899.6: the VM boots, a folder picked through the portal mounts, and the shell works.

    One thing to look at: because of the shim, the audit counts the package as injected-code, so the site may show it as Modified for everyone, even with Cowork off. If you'd rather keep the default listing as it is, I can make this a docs-only recipe instead.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions