Gitea (Tea CLI) for Openclaw

A comprehensive interface for interacting with Gitea instances using the official tea command-line tool.

razzeee
v0.1.0
Feb 9, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gitea-2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gitea-2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Gitea (Tea CLI)?

The Gitea skill provides a robust bridge between your AI agent and Gitea instances by leveraging the official tea CLI. This integration allows for seamless management of repository lifecycles, including handling pull requests, triaging issues, and configuring CI/CD pipelines. As part of the Openclaw Skills ecosystem, it empowers developers to automate self-hosted Git operations through a standardized command-line interface.

By utilizing this skill, users can interact with Gitea without needing to switch to a web browser, making it ideal for high-velocity development environments. It supports multiple login profiles, enabling work across different Gitea servers and organizations while maintaining a consistent automation experience within Openclaw Skills.

Gitea (Tea CLI) Use Cases

  • Automating the listing and retrieval of open pull requests for code reviews.
  • Managing and triaging repository issues directly from the terminal or AI agent.
  • Configuring repository secrets and variables for Gitea Actions (CI/CD) workflows.
  • Performing complex repository metadata queries using the Gitea REST API via tea api commands.

How Gitea (Tea CLI) Works

  1. The skill utilizes the tea CLI, which must be installed on the host system to execute commands.
  2. Users authenticate with their Gitea instance by adding a login profile with a personal access token.
  3. The agent executes tea subcommands (e.g., tea pulls, tea issues) to interact with specific repositories.
  4. For specialized data needs, the skill invokes the tea api to fetch raw JSON responses from the Gitea instance.
  5. The retrieved data is processed and presented as part of the Openclaw Skills workflow to facilitate further developer actions.

Gitea (Tea CLI) Setup

To enable this skill for Openclaw Skills, you must first install the tea CLI. You can use Homebrew or Go:

# Install via Homebrew
brew install tea

# OR install via Go
go install code.gitea.io/tea@latest

After installation, configure your Gitea instance credentials:

tea login add --name my-gitea --url https://gitea.example.com --token <your-token>

Gitea (Tea CLI) Data Schema & Taxonomy

The Gitea skill organizes data around standard Git repository entities. The following table outlines the primary data points accessible via Openclaw Skills:

Entity Data Fields CLI Command Example
Pull Requests ID, Title, Source Branch, State tea pulls --repo owner/repo
Issues Issue Number, Status, Labels tea issues --repo owner/repo
Actions Secrets, Variables tea actions secrets list
API Data Custom JSON objects tea api repos/owner/repo

All metadata retrieved is structured to allow for easy piping into utilities like jq for advanced filtering.

Gitea (Tea CLI) Advanced Features

  • Multi-login support: Manage multiple Gitea instances simultaneously using the --login flag.
  • Full API access: Execute any Gitea REST API request using tea api for features not covered by standard subcommands.
  • CI/CD Management: Programmatic control over repository secrets and variables for Gitea Actions.
  • Extensible filtering: Deep integration with JSON processors allows Openclaw Skills to extract specific fields like PR merge status or user login details.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*