On November 24, Anthropic shipped "Install as app," a feature allowing any Claude artifact to become a native Mac or Windows application with its own Dock icon and file system access. While the launch demos showcased simple utilities, developer spacedevin pushed the limits of this new desktop API by building "Deskmate," a complex AI chat application with account management, billing, and multi-agent orchestration, using just a single 730-line HTML file.
Bypassing the Sandbox with Curl
The most significant technical hurdle was the artifact's Content Security Policy, which blocks standard fetch() calls to external backends. To circumvent this, the developer implemented a 40-line workaround that uses the desktop.childProcess API to execute curl commands directly from the installed app. This approach allows the HTML file to stream server-sent events and interact with the Hypery API gateway, effectively turning the desktop wrapper into a secure bridge for external network requests.
Single-File Architecture and Native Features
Deskmate operates entirely within the browser-like environment of the Claude Desktop app, avoiding Electron, bundlers, or code signing. The application leverages the new claude.use('desktop') API to access native features such as file system read/write permissions, terminal emulation via desktop.pty, and custom menu bar items. The developer used a Markdown skill file to teach Claude Code the specific endpoints of the Hypery backend, enabling the AI to generate the entire application logic from an 88-word prompt.
Multi-Model Orchestration and Billing
The app integrates with Hypery to provide access to approximately 1,000 models, handling team-based billing through OAuth device flows. It employs a sophisticated agent runtime where helper agents (planner, explorer, reviewer) can work in parallel, with model selection dynamically adjusted based on the complexity of the request. The interface includes a searchable combobox for model selection, bypassing native HTML datalist issues in the installed window, and supports image generation as a tool rather than a fixed model choice.
Key Takeaways
- Anthropic's "Install as app" enables web artifacts to function as native desktop apps with file and process access.
- The
curlFetchworkaround is essential for bypassing CSP restrictions on external API calls in installed artifacts. - Complex AI applications with multi-agent orchestration can be built in a single HTML file without traditional server infrastructure.
- The Hypery SDK integrates seamlessly with the desktop API to handle authentication, billing, and model routing.
The Bottom Line
This experiment proves that the barrier to entry for building native-feeling AI desktop apps has collapsed. By leveraging Claude's new desktop APIs and clever workarounds like curl, developers can now ship full-featured AI tools in a single file, challenging the necessity of Electron and traditional backend servers for many use cases.