Render ***plain source to software code using the Codeplain API.
Codeplain is a platform that generates software code using large language models based on requirements you specify in ***plain specification language.
Schematic overview of the Codeplain's code generation service

***plain is a novel specification language that helps abstracting away complexity of using large language models for code generation.
An example application in ***plain

To run the plain2code client, you need Python 3.11 or a later version.
Windows users: Please install WSL (Windows Subsystem for Linux) as this is currently the supported environment for running plain code on Windows.
We are using Codeplain API Key to authorize requests to the Codeplain API. To get your Codeplain API Key, please contact Codeplain.ai support at support@codeplain.ai.
In order to generate code, you need to export the following environment variable:
export CODEPLAIN_API_KEY="your_actual_api_key_here"
export CODEPLAIN_API_KEY=your_api_key_herebash
python -m venv .venv
source .venv/bin/activatepip install -r requirements.txtAfter completing the installation steps above, you can immediately test the system with a simple "Hello World" example:
cd examples/example_hello_world_python
python ../../plain2code.py hello_world_python.plain
Note: Rendering will take a few minutes to complete.
build directory. You can run it with:
cd build
python hello_world.pyIf the plain2code client crashes unexpectedly, it sends an anonymous crash report to Codeplain to help improve the tool. To disable crash reporting, set the CODEPLAIN_NO_TELEMETRY=1 flag.
Releases are built and published with uv. The version is read from _version.py.
_version.py and commit/tag (git tag v<version>).bash
uv build --python 3.11
This produces dist/codeplain-<version>-py3-none-any.whl and dist/codeplain-<version>.tar.gz.bash
uv run --with dist/codeplain-<version>-py3-none-any.whl --no-project -- codeplain --statusbash
uv publish --publish-url https://test.pypi.org/legacy/ dist/codeplain-<version>*bash
uv publish dist/codeplain-<version>*
Authenticate with UV_PUBLISH_TOKEN=pypi-... (recommended), --token pypi-..., or --username __token__ --password pypi-....git push origin v<version>.$ claude mcp add codeplain \
-- python -m otcore.mcp_server <graph>