# Hot Cell

> Securely run untrusted code on untrusted inputs

Source: https://talira.ai/catalog/hot-cell-r96p484z
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / sandboxing](https://talira.ai/categories/security/sandboxing), [languages / ruby / rails](https://talira.ai/categories/languages/ruby/rails)
- Platforms: linux, docker[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Backed by: [37signals](https://talira.ai/orgs/37signals.md)
- Funding: bootstrapped[^3][^4][^5]

Hot Cell moves risky work on untrusted files (image, video and PDF processing above all) out of a Rails app into an unprivileged sidecar container with no network, no credentials and nothing worth stealing. The app calls an ordinary Ruby method; Hot Cell passes the input and output files as descriptors over a UNIX socket and runs the work in a forked worker under limits on memory, time and disk. For Active Storage it ships drop-in analyzers, transformers and previewers, so libvips, FFmpeg and LibreOffice can leave the app image; custom operations use a `#perform` API. 37signals runs it in Basecamp, HEY and Fizzy, at about 8 ms per call.

## Links

- Website: https://basecamp.github.io/hotcell/
- GitHub: https://github.com/basecamp/hotcell
- Docs: https://basecamp.github.io/hotcell/

## Problems it solves

- a crafted image upload could exploit libvips inside the container that holds our database credentials
- process user-uploaded images, videos and PDFs somewhere that can't reach our network or secrets
- sandbox Active Storage previews and variants without changing our application code
- run a risky file conversion in a separate process with memory, time and disk limits
- take ffmpeg and LibreOffice out of our main Rails image

## Features

- unprivileged sidecar container with no network or credentials
- inputs and outputs as file descriptors over a UNIX socket
- forked workers with memory, wall-clock and disk limits
- drop-in Active Storage analyzers, transformers and previewers
- custom operations with a #perform API
- several cells per host
- bring your own container image, checked by a conformance test

## Limitations

- The Active Storage gems need Rails 8.2, which hasn't been released yet[^1]

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by 37signals
- funding: bootstrapped

Warnings:

- GitHub activity not fetched yet

## Sources

[^1]: https://github.com/basecamp/hotcell (checked 21 Nov 2026)
[^2]: https://github.com/basecamp/hotcell/blob/master/MIT-LICENSE (checked 21 Nov 2026)
[^3]: https://37signals.com/01 (checked 21 Nov 2026)
[^4]: https://37signals.com/jobs (checked 21 Nov 2026)
[^5]: https://basecamp.com/pricing (checked 21 Nov 2026)
