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

# Install a plugin in the organization

> Installs a plugin in the organization from a marketplace entry or a branch or tag of a public git repository, pinned to one commit, adding the MCP servers it bundles to the catalog and enabling it on every project.

Use this tool when you need to:
- Install a plugin a marketplace lists, from browsePluginMarketplace or a searchIntegrations result of kind plugin
- Install a plugin, or a directory of skills, from a public git repository

Examples:
- POST /orgs/{orgID}/plugins {"kind": "marketplace", "marketplace_url": "https://github.com/anthropics/claude-plugins-official.git", "plugin": "commit-commands"}
- POST /orgs/{orgID}/plugins {"kind": "git", "url": "acme/agent-plugins", "ref": "v1.2.0", "path": "plugins/review"}

Hints:
- kind marketplace takes marketplace_url, the marketplace's public https git repository, and plugin, the name it lists the plugin under (1 to 128 characters).
- kind git takes url: a GitHub repository as owner/repo, an https git URL, or a link to a directory of a GitHub repository at a branch or tag (github.com/owner/repo/tree/ref/directory), which takes no ref or path; ref is the branch or tag to follow (omitted: the default branch) and path the directory holding the plugin (omitted: the root).
- Resolves the source to one commit and pins it, reads its Claude Code, Codex and Agent Plugins manifests (a directory without one installs as a plugin of its skills, every directory holding a SKILL.md), stores its tree, and adds each MCP server it bundles to the catalog, probing each remote one as a server added by hand is probed; a local (stdio) server is recorded unavailable.
- The plugin is enabled on every current project of the organization, and every project created later, with its default credential policy: the task creator's connections for a plugin whose servers need a credential, none otherwise.
- Answers 201 with plugin and connect: the servers that take a connection, in key order, each with kind (oauth, or static_secret for an API key), mcp_server_id, url and owner, whose connection the default calls for (creator, the default of every plugin installed here).
- Use installDirectoryIntegration instead for an integration of Aether's directory: a plugin bundling a server under a directory integration's key or one of Aether's own is refused with 422 plugin_server_key_reserved.
- Owners and admins of the organization; any other role is refused with 403 org_role_insufficient, a caller outside the organization with 403 org_membership_required, and an agent host's grant with 403 agent_host_route_not_allowed.
- Refused, naming the conflict in conflicts, with 409 plugin_server_key_taken when another server of the organization holds one of the plugin's server keys; 409 plugin_name_taken when another plugin has its name; 422 plugin_source_ codes when the source cannot be read, plugin_skill_invalid, plugin_undeliverable when neither Claude Code nor Codex can load it, plugin_server_probe_failed, and plugin_request_invalid for a source the schema admits that does not parse (a body the schema refuses, such as a marketplace_url not starting https://, is a plain 422).



## OpenAPI

````yaml api-reference/openapi.json POST /orgs/{orgID}/plugins
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/plugins:
    post:
      tags:
        - plugins
      summary: Install a plugin in the organization
      description: >-
        Installs a plugin in the organization from a marketplace entry or a
        branch or tag of a public git repository, pinned to one commit, adding
        the MCP servers it bundles to the catalog and enabling it on every
        project.


        Use this tool when you need to:

        - Install a plugin a marketplace lists, from browsePluginMarketplace or
        a searchIntegrations result of kind plugin

        - Install a plugin, or a directory of skills, from a public git
        repository


        Examples:

        - POST /orgs/{orgID}/plugins {"kind": "marketplace", "marketplace_url":
        "https://github.com/anthropics/claude-plugins-official.git", "plugin":
        "commit-commands"}

        - POST /orgs/{orgID}/plugins {"kind": "git", "url":
        "acme/agent-plugins", "ref": "v1.2.0", "path": "plugins/review"}


        Hints:

        - kind marketplace takes marketplace_url, the marketplace's public https
        git repository, and plugin, the name it lists the plugin under (1 to 128
        characters).

        - kind git takes url: a GitHub repository as owner/repo, an https git
        URL, or a link to a directory of a GitHub repository at a branch or tag
        (github.com/owner/repo/tree/ref/directory), which takes no ref or path;
        ref is the branch or tag to follow (omitted: the default branch) and
        path the directory holding the plugin (omitted: the root).

        - Resolves the source to one commit and pins it, reads its Claude Code,
        Codex and Agent Plugins manifests (a directory without one installs as a
        plugin of its skills, every directory holding a SKILL.md), stores its
        tree, and adds each MCP server it bundles to the catalog, probing each
        remote one as a server added by hand is probed; a local (stdio) server
        is recorded unavailable.

        - The plugin is enabled on every current project of the organization,
        and every project created later, with its default credential policy: the
        task creator's connections for a plugin whose servers need a credential,
        none otherwise.

        - Answers 201 with plugin and connect: the servers that take a
        connection, in key order, each with kind (oauth, or static_secret for an
        API key), mcp_server_id, url and owner, whose connection the default
        calls for (creator, the default of every plugin installed here).

        - Use installDirectoryIntegration instead for an integration of Aether's
        directory: a plugin bundling a server under a directory integration's
        key or one of Aether's own is refused with 422
        plugin_server_key_reserved.

        - Owners and admins of the organization; any other role is refused with
        403 org_role_insufficient, a caller outside the organization with 403
        org_membership_required, and an agent host's grant with 403
        agent_host_route_not_allowed.

        - Refused, naming the conflict in conflicts, with 409
        plugin_server_key_taken when another server of the organization holds
        one of the plugin's server keys; 409 plugin_name_taken when another
        plugin has its name; 422 plugin_source_ codes when the source cannot be
        read, plugin_skill_invalid, plugin_undeliverable when neither Claude
        Code nor Codex can load it, plugin_server_probe_failed, and
        plugin_request_invalid for a source the schema admits that does not
        parse (a body the schema refuses, such as a marketplace_url not starting
        https://, is a plain 422).
      operationId: installPlugin
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstallPluginRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginInstall'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginErrorResponse'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PluginsErrorResponse'
                  - $ref: '#/components/schemas/PluginErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Internal Server Error
components:
  schemas:
    InstallPluginRequest:
      discriminator:
        mapping:
          git: '#/components/schemas/InstallGitPluginRequest'
          marketplace: '#/components/schemas/InstallMarketplacePluginRequest'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/InstallMarketplacePluginRequest'
        - $ref: '#/components/schemas/InstallGitPluginRequest'
    PluginInstall:
      additionalProperties: false
      properties:
        connect:
          description: >-
            The plugin's servers that take a connection, in key order, under the
            plugin's default credential policy; empty when none does.
          items:
            $ref: '#/components/schemas/McpServerConnect'
          type: array
        plugin:
          $ref: '#/components/schemas/Plugin'
      required:
        - plugin
        - connect
      type: object
    PluginsErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unavailable
            - aether_inference_unserved
            - agent_connector_not_found
            - agent_default_project_archived
            - agent_profile_changed
            - agent_profile_harness_fixed
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - connection_agent_only
            - connection_harness_mismatch
            - connection_not_held
            - control_forbidden
            - default_skill_required
            - fallback_is_own_connection
            - fallback_required_with_pin
            - fallback_requires_pin
            - forbidden
            - gateway_timeout
            - gone
            - integration_auth_unexpected
            - integration_not_in_directory
            - integration_shape_changed
            - internal_error
            - mcp_connection_github_not_connected
            - mcp_connection_oauth_not_accepted
            - mcp_connection_org_not_offered
            - mcp_connection_secret_invalid
            - mcp_connection_server_changed
            - mcp_connection_static_secret_not_accepted
            - mcp_credential_policy_not_applicable
            - mcp_credential_policy_org_unavailable
            - mcp_credential_policy_required
            - mcp_oauth_app_auth_method_unsupported
            - mcp_oauth_app_invalid
            - mcp_oauth_app_issuer_invalid
            - mcp_oauth_app_required
            - mcp_oauth_not_advertised
            - mcp_oauth_pkce_unsupported
            - mcp_oauth_registration_failed
            - mcp_repo_config_invalid
            - mcp_server_address_refused
            - mcp_server_aether_managed
            - mcp_server_api_key_not_applicable
            - mcp_server_args_invalid
            - mcp_server_auth_discovery_failed
            - mcp_server_auth_unsupported
            - mcp_server_directory_managed
            - mcp_server_directory_moved
            - mcp_server_display_name_invalid
            - mcp_server_env_invalid
            - mcp_server_headers_invalid
            - mcp_server_key_invalid
            - mcp_server_key_reserved
            - mcp_server_key_taken
            - mcp_server_kind_change_refused
            - mcp_server_not_from_directory
            - mcp_server_not_mcp
            - mcp_server_package_invalid
            - mcp_server_plugin_bundled
            - mcp_server_plugin_off
            - mcp_server_response_too_large
            - mcp_server_return_to_invalid
            - mcp_server_runtime_invalid
            - mcp_server_switched_off
            - mcp_server_unreachable
            - mcp_server_url_invalid
            - mcp_server_version_unpinned
            - method_not_allowed
            - not_acceptable
            - not_found
            - not_implemented
            - org_role_insufficient
            - org_suspended
            - payment_required
            - plugin_moved
            - plugin_name_taken
            - plugin_request_invalid
            - plugin_server_key_reserved
            - plugin_server_key_taken
            - plugin_server_probe_failed
            - plugin_server_required
            - plugin_skill_invalid
            - plugin_source_address_refused
            - plugin_source_empty
            - plugin_source_invalid
            - plugin_source_not_found
            - plugin_source_not_public
            - plugin_source_too_large
            - plugin_source_unreachable
            - plugin_source_unsupported
            - plugin_switched_off
            - plugin_undeliverable
            - precondition_failed
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - service_unavailable
            - skill_slug_reserved
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    PluginErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - plugin_request_invalid
            - plugin_source_address_refused
            - plugin_source_not_public
            - plugin_source_unreachable
            - plugin_source_not_found
            - plugin_source_unsupported
            - plugin_source_too_large
            - plugin_source_invalid
            - plugin_source_empty
            - plugin_skill_invalid
            - plugin_undeliverable
            - plugin_server_probe_failed
            - plugin_server_key_taken
            - plugin_server_key_reserved
            - plugin_name_taken
            - plugin_moved
            - plugin_server_required
            - plugin_switched_off
            - mcp_credential_policy_required
            - mcp_credential_policy_not_applicable
            - mcp_credential_policy_org_unavailable
            - integration_not_in_directory
            - integration_shape_changed
            - integration_auth_unexpected
          type: string
        conflicts:
          items:
            $ref: '#/components/schemas/PluginKeyHolder'
          type: array
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
        - conflicts
      type: object
    InstallGitPluginRequest:
      additionalProperties: false
      properties:
        kind:
          enum:
            - git
          type: string
        path:
          description: 'The directory holding the plugin; omitted: the repository''s root.'
          maxLength: 1024
          type: string
        ref:
          description: 'The branch or tag to follow; omitted: the default branch.'
          maxLength: 255
          type: string
        url:
          description: >-
            The plugin's public git repository: a GitHub repository as
            owner/repo, an https git URL, or a link to a directory of a GitHub
            repository at a branch or tag
            (https://github.com/<owner>/<repo>/tree/<ref>/<directory>), which
            takes no ref or path. A directory without a plugin manifest installs
            as a plugin of its skills: every directory holding a SKILL.md is
            one.
          maxLength: 2048
          minLength: 1
          type: string
      required:
        - kind
        - url
      type: object
    InstallMarketplacePluginRequest:
      additionalProperties: false
      properties:
        kind:
          enum:
            - marketplace
          type: string
        marketplace_url:
          description: The marketplace's public https git repository.
          maxLength: 2048
          minLength: 1
          pattern: ^https://
          type: string
        plugin:
          description: The name the marketplace lists the plugin under.
          maxLength: 128
          minLength: 1
          type: string
      required:
        - kind
        - marketplace_url
        - plugin
      type: object
    McpServerConnect:
      additionalProperties: false
      properties:
        kind:
          description: >-
            oauth: consent at the server's authorization server, started with
            startMcpServerOAuth (owner creator) or startOrgMcpServerOAuth (owner
            org). static_secret: an API key, saved with connectMcpServer or
            connectOrgMcpServer.
          enum:
            - oauth
            - static_secret
          type: string
        mcp_server_id:
          format: uuid
          type: string
        owner:
          description: >-
            Whose connection the default credential policy calls for: creator,
            the caller's own; org, the organization's, which an org admin makes.
          enum:
            - creator
            - org
          type: string
        url:
          description: >-
            The server's URL: the url startMcpServerOAuth and connectMcpServer
            take for it.
          type: string
      required:
        - kind
        - mcp_server_id
        - url
        - owner
      type: object
    Plugin:
      additionalProperties: false
      properties:
        commit:
          type: string
        created_at:
          format: date-time
          type: string
        default_credential_policy:
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
        delivery:
          $ref: '#/components/schemas/PluginDelivery'
        directory:
          $ref: '#/components/schemas/PluginDirectoryOrigin'
        enabled_by_default:
          type: boolean
        id:
          format: uuid
          type: string
        manifests:
          $ref: '#/components/schemas/PluginManifests'
        marketplace:
          $ref: '#/components/schemas/PluginMarketplaceOrigin'
        name:
          type: string
        needs_credential:
          type: boolean
        path:
          description: The directory holding the plugin; empty for the repository's root.
          type: string
        ref:
          description: >-
            The branch or tag the source follows; null for the default branch or
            a marketplace entry pinned to a commit.
          type:
            - string
            - 'null'
        repository_url:
          type: string
        servers:
          items:
            discriminator:
              mapping:
                remote: '#/components/schemas/PluginRemoteServer'
                stdio_unavailable: '#/components/schemas/PluginStdioServer'
              propertyName: kind
            oneOf:
              - $ref: '#/components/schemas/PluginRemoteServer'
              - $ref: '#/components/schemas/PluginStdioServer'
          type: array
        skills:
          description: >-
            The plugin's skills, ordered by their SKILL.md's path; absent until
            Aether reads the skills of a plugin installed before it recorded
            them.
          items:
            $ref: '#/components/schemas/PluginSkill'
          type: array
        support:
          $ref: '#/components/schemas/PluginSupport'
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - name
        - repository_url
        - path
        - ref
        - commit
        - manifests
        - support
        - needs_credential
        - default_credential_policy
        - enabled_by_default
        - servers
        - created_at
        - updated_at
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    PluginKeyHolder:
      additionalProperties: false
      properties:
        key:
          type: string
        plugin:
          type:
            - string
            - 'null'
        source:
          enum:
            - manual
            - aether
            - plugin
            - directory
          type: string
      required:
        - key
        - source
        - plugin
      type: object
    PluginDelivery:
      additionalProperties: false
      properties:
        claude_code:
          description: >-
            deliverable, or why Claude Code cannot load the plugin:
            claude_code_manifest_skills, its .claude-plugin/plugin.json names
            its skills other than as ./ paths inside it.
          enum:
            - deliverable
            - claude_code_manifest_skills
          type: string
        codex:
          description: >-
            deliverable, or why Codex cannot load the plugin: codex_plugin_name,
            its name ends in '.'; codex_no_manifest, it has none of the
            manifests Codex reads; codex_agent_plugins_servers, Codex reads it
            as an Agent Plugins plugin, whose mcp.json cannot carry the
            credential Aether's MCP gateway requires, and it has remote MCP
            servers.
          enum:
            - deliverable
            - codex_plugin_name
            - codex_no_manifest
            - codex_agent_plugins_servers
          type: string
      required:
        - claude_code
        - codex
      type: object
    PluginDirectoryOrigin:
      additionalProperties: false
      properties:
        display_name:
          type: string
        homepage:
          type: string
      required:
        - display_name
        - homepage
      type: object
    PluginManifests:
      additionalProperties: false
      properties:
        agent_plugins:
          description: The Agent Plugins plugin.json at the plugin's root.
          type: boolean
        claude:
          description: .claude-plugin/plugin.json
          type: boolean
        codex:
          description: .codex-plugin/plugin.json
          type: boolean
        synthesized:
          description: >-
            The plugin's directory holds no manifest, so Aether synthesizes one:
            the plugin is the directory's skills, every directory holding a
            SKILL.md, named after the directory.
          type: boolean
      required:
        - claude
        - codex
        - agent_plugins
        - synthesized
      type: object
    PluginMarketplaceOrigin:
      additionalProperties: false
      properties:
        name:
          type: string
        plugin:
          type: string
        url:
          type: string
      required:
        - name
        - url
        - plugin
      type: object
    PluginRemoteServer:
      additionalProperties: false
      properties:
        auth:
          enum:
            - none
            - static_secret
            - oauth
          type: string
        key:
          type: string
        kind:
          enum:
            - remote
          type: string
        mcp_server_id:
          format: uuid
          type: string
        url:
          type: string
      required:
        - kind
        - mcp_server_id
        - key
        - url
        - auth
      type: object
    PluginStdioServer:
      additionalProperties: false
      properties:
        args:
          items:
            type: string
          type: array
        command:
          type: string
        key:
          type: string
        kind:
          enum:
            - stdio_unavailable
          type: string
      required:
        - kind
        - key
        - command
        - args
      type: object
    PluginSkill:
      additionalProperties: false
      properties:
        agents:
          description: The agents that load the skill.
          items:
            enum:
              - claude_code
              - codex
            type: string
          maxItems: 2
          minItems: 1
          type: array
        description:
          description: The description the SKILL.md's frontmatter declares.
          type: string
        name:
          description: The name the SKILL.md's frontmatter declares.
          type: string
      required:
        - name
        - description
        - agents
      type: object
    PluginSupport:
      additionalProperties: false
      properties:
        claude_code:
          items:
            enum:
              - skills
              - commands
              - agents
              - hooks
              - mcp_servers
            type: string
          type: array
        codex:
          items:
            enum:
              - skills
              - commands
              - agents
              - hooks
              - mcp_servers
            type: string
          type: array
      required:
        - claude_code
        - codex
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.