Developer Rich Acosta has introduced ClawDOS, an open-source AI agent designed to write and execute code within the DOS environment. The project allows users to interact with the Claude AI model directly from the command line of an IBM PC 5160, which features an 8088 processor.
The system utilizes a bridge computer to handle TLS protocol tasks that the original hardware cannot process. The core component, HARNESS.EXE, occupies 176 KB and manages API communication, file editing, and the compilation of code using Turbo C. It preserves session context to allow for continuous development.
During operation, ClawDOS offloads from memory to provide Turbo C with approximately 450 KB of space for compilation and execution. In a test case, the system compiled and ran a C program in 26 seconds, with a total response time of 64 seconds. The software is licensed under GPLv3.
To run the project, users need a computer with Python 3 and an Anthropic API key. An offline mode is available via a mock API script. The project follows other retro-computing AI experiments, such as the TINY 2.1 transformer for DOS and a local model for the Super Nintendo Entertainment System.






