BayLeaf AI Playground

An experimental Generative AI Playground for UC Santa Cruz

BayLeaf Chat BayLeaf API Use Cases Source 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.

For concrete recipes (chasing down a half-heard funding lead, rescuing a misconfigured Canvas assignment, drafting a workflow doc from scattered emails), see the use cases page.

Anarchist AI Infrastructure: a 45-minute guest lecture series making the political case for campus-owned AI, given by Adam Smith for a UCSC course.

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.

BayLeaf relies on a small set of subprocessors (OpenRouter, DigitalOcean, Cloudflare, Daytona, Tavily, CILogon): see the privacy notice for the full list, what each one does, and the retention policies that govern your data.

A path toward institution-managed inference. UC has in-place data-protection agreements with both Google Cloud (Vertex AI, now serving the Gemini family) and Amazon Web Services (Bedrock). BayLeaf has integrated both back-ends to demonstrate that a technically and legally protected data flow is achievable: a clear path toward a future version of BayLeaf operated directly by UCSC ITS. Two honest caveats. First, BayLeaf is run from a personal administrator account, not one managed by UCSC ITS, so those institutional agreements do not currently cover data flowing through BayLeaf; they show the path, not its present legal footing. Second, BayLeaf holds a hard line of requiring zero data retention for every active AI provider, so the Vertex AI back-end is integrated but disabled pending removal of data retention for abuse monitoring from our accounts. We integrate such providers speculatively to build the path forward, but we never let user data be logged by a third-party LLM service. (Non-AI services such as the Daytona-backed Code Sandbox necessarily store user files, since persistent storage is their function.) The full contract and retention analysis is public in our FERPA notes.
Security-reviewed by UCSC ITS. BayLeaf has undergone a security review by the UC Santa Cruz Information Technology Services (ITS) office. The campus Chief Information Security Officer (CISO) and his team reviewed the service and deemed it ready to launch: technically cleared to handle data up to Protection Level 3 (P3). That is a security determination about how BayLeaf protects data; it is distinct from legal authorization to process specific regulated records. In particular, clearance to use BayLeaf with actual FERPA student education records is a separate process, still underway with the Registrar, and is not yet granted. To be clear about scope, BayLeaf is not an ITS-operated or ITS-supported service; it remains faculty-operated. The review attests to its security posture, not to institutional adoption.

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.

The API recommends an open-weight model as the default for new users; the dashboard's sample request is pre-filled with it. Developers may freely call any model in the catalog, including larger proprietary ones, when a task calls for it. For the full 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 and page content extraction as first-class endpoints, both backed by Tavily. Agents can search the web for information and fetch clean, extracted content from one or many URLs in a single call, 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:

Adoption

BayLeaf is in active use across UCSC courses. A representative sample:

Course-specific agents (Brace, Brace2, Brace3, Gambit) are built atop BayLeaf Chat with custom system prompts and toolkits. Other courses use BayLeaf's general-purpose Basic model directly.

For more granular examples of what individual users (faculty, students, and staff) actually do with BayLeaf, see the use cases page.

Ad-hoc faculty use

Beyond enrolled courses, faculty across campus use BayLeaf for one-off course-management tasks: running scripts in the Chat Code Sandbox or driving agentic CLI tools through the BayLeaf API to manipulate Canvas. Reported uses include:

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. This is the prefigurative counterpower move: build small, autonomous systems that embody the values you want to see, rather than waiting for centralised infrastructure to be reformed from within.

A 2026 Inside Higher Ed survey of campus CTOs found that half question whether their AI investments are paying off, while 41% cite "falling behind peer institutions" as a top worry through 2030. That combination, doubt about value paired with fear of missing out, is the imitation trap BayLeaf is built to refuse. A campus-owned service can be small, problem-led, and accountable to its own community rather than benchmarked against whatever neighboring institutions just bought.

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.