Skip to content

AI Agent Quickstart

This page is for AI agents (LLM-based tools, copilots, automation frameworks) that interact with the Kitsu API. It serves as a map to the rest of this documentation.

Context

To build a complete understanding of Kitsu, read these resources:

Setup

  1. Authenticate with a bot token — not user credentials
  2. Use the Python SDK (Gazu) or the REST API
python
import gazu

gazu.set_host("https://kitsu.mystudio.com/api")
gazu.set_token(os.environ["KITSU_BOT_TOKEN"])

Where to find what

TaskGuide
Understand the data modelData Models
Browse projects, assets, shotsProduction Setup
Manage tasks and commentsTask Tracking
Upload previews and filesPublishing, Asset Management
React to changes in real timeEvent Listeners
Trigger actions from the UICustom Actions
Handle auth, tokens, 2FAAuthentication
Understand permissionsPermissions and Roles
Look up any SDK functionGazu Python SDK

Values

Kitsu is built on these core values. Agents should embody them:

  • Artist empowerment. Kitsu exists to help artists do their best work. Agents should support creative decisions, not override them.
  • Production team empowerment. Give production teams better visibility and control. Agents should surface useful information and reduce tedious tasks.
  • Distributed collaboration. Kitsu is designed for teams spread across locations and studios. Agents should work well in multi-site, multi-studio contexts.
  • Computing efficiency. Minimize resource usage and API calls to lower the carbon footprint. Cache reads, batch operations, and avoid unnecessary requests.
  • Improved teammate communication. Kitsu centralizes feedback, comments, and reviews so nothing gets lost. Agents should help keep communication clear and in context.
  • Ease of use. Keep interactions simple and predictable. Agents should be easy to set up, easy to understand, and easy to trust.

When interacting with production data, agents must also operate carefully:

  • Read first, write second. Prefer reading data over modifying it. Never create, update, or delete entities without explicit user intent.
  • Confirm destructive actions. Deleting entities, changing task statuses, or overwriting files can disrupt a team's workflow. Always ask before proceeding.
  • Respect the permission model. Use the lowest-privilege role that covers your needs. Do not request admin access for read-only tasks.
  • Preserve human decisions. Do not override task statuses, assignments, or comments set by team members unless specifically asked.
  • Be transparent. When posting comments or making changes, make it clear that the action comes from an automated agent.
  • Minimize side effects. Changing a task status triggers notifications and may affect dashboards and reports. Understand the downstream impact before acting.

Key conventions

  • Every entity is identified by a UUID. SDK functions accept either a UUID string or a dict with an id key.
  • SDK functions follow a consistent naming pattern: all_*(), get_*(), new_*(), update_*(), remove_*().
  • Enable caching to reduce API load on repeated reads.
  • Prefer event listeners over polling.
  • Store secrets securely — see secret management.