> ## Documentation Index
> Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Classroom: Education Access for AI Agents

> Manage courses, assignments, and student rosters through the Classroom API. OAuth credentials injected by the gateway.

## Overview

OneCLI connects AI agents to Google Classroom through Google's OAuth flow. Agents can manage courses, create and grade assignments, and view student rosters. The gateway injects OAuth credentials into requests to the Google Classroom API automatically.

This is useful for education-focused agents that need to automate course management, distribute assignments, or process student submissions.

## Setup

<Steps>
  <Step title="Go to Connections">
    Open the OneCLI dashboard and navigate to **Connections** > **Google Classroom**.
  </Step>

  <Step title="Authorize">
    Click **Connect Google Classroom**. You'll be redirected to Google to authorize OneCLI. Review the permissions and click **Allow**.
  </Step>
</Steps>

## What agents can do

* List courses and their details (name, section, status, enrollment code)
* Create new courses with specified name, section, and description
* Update course details and archive courses
* List students and teachers enrolled in a course
* Invite students or teachers to a course
* Create coursework (assignments, quizzes) with due dates and point values
* List and read student submissions
* Grade student submissions and return them with feedback
* Create course materials and announcements
* Read and post to the course stream

## Controlling access

Access is per agent: [grant](/docs/guides/agent-access) the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization [rules](/docs/guides/rules) add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Google Classroom.
