BayLeaf AI Playground

An experimental Generative AI Playground for UC Santa Cruz

BayLeaf Chat BayLeaf API Source Status Support

About the AI Playground

BayLeaf Chat and BayLeaf API form an experimental Generative AI Playground designed to serve the entire UC Santa Cruz campus community (students, faculty, and staff). The system is operated by Adam Smith (faculty from the Department of Computational Media), as a living prototype of a possible future university-managed service.

Responsible Design

BayLeaf is designed as a form of harm reduction with respect to widely acknowledged problems with commercial AI offerings: runaway energy consumption, extractive data practices, closed ecosystems that concentrate power outside of universities, and tools that prioritize engagement over learning and rigor.

Subprocessors: services that handle data on behalf of BayLeaf

Chat Service

Our Chat service provides three models to all users:

Beyond the public models, specialized models and toolkits are available to members of specific access groups (e.g. course sections, departments, or programs).

The Code Sandbox toolkit gives models access to a persistent, sandboxed Linux environment, making it possible to run command-line tools directly from the browser. This enables tasks like file processing, scripting, and interacting with external services through CLI tools without leaving the chat interface.

Most chat models are subject to a rate limit mechanism that ensures fair and cost-efficient access for all.

Tip: Chat message replies from models are limited in length based on the number of turns in the conversation so far. Users should prefer many short conversations on distinct topics rather than one long one that meanders through unrelated topics.

API Service

Our API service provides key-less access to users connecting from the campus network (e.g. 169.233.x.x), and it allows authenticated users to grant themselves an API key for off-campus access.

This API injects a short system prompt prefix to all proxied requests to lightly customize downstream agents for use with the Playground.

To allow for experimentation, API requests are not closely rate limited, but individual keys are subject to a reasonable total daily spending limit.

For a list of models and per-token prices, visit OpenRouter's model directory.

Code Sandbox

The API also provides sandboxed Linux environments (backed by Daytona) for code execution and file management. Keyed users get a persistent sandbox that retains files across sessions, while campus-pass users get ephemeral sandboxes that are created and destroyed per request. The same sk-bayleaf- API key authenticates both LLM inference and sandbox access.

Web Search & Fetch

The API provides web search (backed by Tavily) and page content extraction (backed by Jina Reader) as first-class endpoints. Agents can search the web for information and fetch clean, extracted content from any URL, all authenticated with the same sk-bayleaf- API key used for LLM inference and sandbox access.

Tool Integrations

The API dashboard distributes setup instructions and credentials for CLI tools that extend what coding agents can do on behalf of authenticated users:

In the News

Related Projects

Beyond UCSC

BayLeaf is open source, built in a municipalist spirit: it serves one campus, not the entire higher education sector. The architecture is not UCSC-specific, but it is intentionally local: designed to be copied and remixed to fit the needs of other campuses, not scaled into a platform that governs them.

If you're evaluating AI tools for your campus, read the case for universities owning their own AI infrastructure, or explore the source.

GenAI Disclosure

Nearly 100% of the code, documentation, and other project data in the BayLeaf repository was created using generative AI in agentic coding tools. This is an intentional choice: it demonstrates that sufficient capacity exists within the university to build and operate a service like this, without ceding control or responsibility to external parties. If you are a critic, ally, or other human who wants a direct human connection, please contact Adam Smith directly.