Klad: A 2D Painting and Animation Tool for Coding Agents
Klad is a 2D painting and animation tool that integrates with coding agents, allowing developers to control the creative process through a command line interface with real-time visual output.
Klad as a 2D Painting and Animation Tool
Klad is a 2D painting and animation tool designed to work in tandem with coding agents. As described in the source, it functions as a platform where your agent—whether Claude Code, Codex, or another command-running system—can control the creative process. Klad provides the necessary tools, including brushes, layers, and a timeline, enabling the agent to generate visual content. The tool operates through the command line, with strokes appearing in the user’s editor approximately one second after being issued. This integration allows for a seamless workflow between coding and visual creation, making Klad a unique tool for developers and artists working together in real time.
Integration with Coding Agents and Command Line Interface
Klad integrates seamlessly with coding agents and offers a powerful command line interface for developers. Every action performed in the editor has a corresponding klad command, enabling scripts or agents to interact with the same drawing in real time. For example, commands like klad inbetween and klad arcs allow precise manipulation of layers and tracks within a drawing file. Developers can also export assets directly for use in game engines like Godot with commands such as klad export.To get started, users can clone the Klad repository and compile it locally. Once installed, the klad command can be used directly from the terminal, and developers can even install it system-wide for use by both themselves and their coding agents. To let an agent take control, simply run klad skill and klad skill drawing in the target directory, and the agent can begin painting based on the instructions provided.
Installation and Usage Instructions
To install Klad, follow the standard build process for the project, which includes the klad command line tool, editor, fonts, licenses, agent skill, and six sample drawings. Once installed, users can create scenes by specifying elements such as a hooded traveller holding a lantern near a ruined arch, with a small creature following, using flat shading and lighting effects. Notes can be pinned to the canvas by pressing N, allowing users to add annotations like 'more moss on this side' for the coding agent to reference. Users can also select individual strokes with S to make direct edits. The start window displays the sample drawings, and the klad samples command lists them and copies one out for modification.
Licensing and Availability
Klad is source-available, not open source, and is copyrighted by Indicode BV. The app, excluding specific components, is governed by the PolyForm Internal Use License 1.0.0, with three additional permissions and one limitation. Users may use the app for personal purposes, build it from source free of charge, and use it within their company. They may also submit changes to Indicode BV for potential contributions. Additionally, users retain ownership of the drawings they create, though brush settings and pictures copied into those drawings are subject to the app's terms.
The limitation applies to companies with annual revenue of 500,000 euros or more (including those controlled by or controlling such companies). These companies must purchase a license for each person using Klad. This restriction is outlined in the LICENSE file provided with the project.
Third-Party Dependencies and Open Source Components
Klad, a source-available paint app, relies on a range of open source components and libraries to function. These include Skia, a 2D graphics library, and various fonts, all of which are listed in the THIRD-PARTY-NOTICES.md file. This document also appears in the editor's About window and is accessible through the klad licences tool, ensuring transparency about the software's dependencies. The project's files, including docs/format.md, docs/cli.md, and crates/client/, are released under the MIT License, allowing broad compatibility with other programs and coding agents. This licensing approach supports integration with AI-driven tools and ensures that developers can use and modify Klad's components freely, as long as they comply with the terms of the MIT License.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.