Skip to main content

Kiln AI REST Server

PyPI - Version PyPI - Python Version


About Kiln AI

Learn more about Kiln AI at kiln.app

This package is the Kiln AI server package. There is also a separate desktop application and python library package.

Github: github.com/Kiln-AI/kiln

Installation

We suggest installing with uv:

uv tool install kiln_server

REST API Docs

Our OpenAPI docs: https://kiln-ai.github.io/Kiln/kiln_server_openapi_docs/index.html

Running the server

After installing, run:

kiln_server

kiln_server Command Options

usage: kiln_server [-h] [--host HOST] [--port PORT] [--log-level LOG_LEVEL] [--auto-reload AUTO_RELOAD]

Run the Kiln AI REST Server.

options:
  -h, --help            show this help message and exit
  --host HOST           Host for network transports.
  --port PORT           Port for network transports.
  --log-level LOG_LEVEL
                        Log level for the server when using network transports.
  --auto-reload AUTO_RELOAD
                        Enable auto-reload for the server.

Using the server in another FastAPI app

See server.py for examples, but you can connect individual API endpoints to your app like this:

from kiln_server.project_api import connect_project_api

app = FastAPI()
connect_project_api(app)

The kiln_server app turns on the kiln_ai datamodel cache while it runs (default_lifespan in server.py). With KILN_DISABLE_MODEL_CACHE=true set, it calls ModelCache.shared().disable() instead, and the cache stays off for the whole process; kiln_mcp does the same. An app that connects the endpoints itself starts with the cache off, so every request reads and validates its records from disk again. To keep loaded records in memory between requests, call set_model_cache_enabled(True) from kiln_ai.datamodel when your app starts, for example in its lifespan. To also honour KILN_DISABLE_MODEL_CACHE as kiln_server does, call apply_model_cache_setting(disable=Config.shared().disable_model_cache) from kiln_ai.datamodel.model_cache instead.

Kiln project tools MCP server

Also included in this package is the Kiln project tools MCP server (the kiln_mcp command). It serves one Kiln project's tools to other apps. It is not the way to connect your own agent, such as Claude Code or Codex, to the Kiln app: the app has its own built-in MCP server for that.

See it's README for details.

Metadata

Release files for kiln-server 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kiln-server 1.3.0
File Size Uploaded Provenance Actions
kiln_server-1.3.0.tar.gz 295.7 kB Without provenance Details for kiln_server-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kiln-server 1.3.0
File Interpreter ABI Platform Actions
kiln_server-1.3.0-py3-none-any.whl Python 3 none any Details for kiln_server-1.3.0-py3-none-any.whl

Total release size: 609.1 kB

Release files / kiln_server-1.3.0.tar.gz

Download URL kiln_server-1.3.0.tar.gz
Size 295.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a6f128e62ad7ba18754db7252f817dae99850e02ea4fa56057e6a38df796aea8
BLAKE2b-256 checksum
How to use checksums
4268bb5bf91a2390dc093c323fb9a2f1e3089b72d0eaa89b348fc0fc87cfeeb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kiln_server-1.3.0-py3-none-any.whl

Download URL kiln_server-1.3.0-py3-none-any.whl
Size 313.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63914acad69624a496e13b2ea904041233238962b70baa869e4e65b923b6fbf9
BLAKE2b-256 checksum
How to use checksums
7b6d623a0eebf3814e1336005f5630cadb4ca523e57340053850fb7edcf75b14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for kiln-server 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page