Skip to content

Multi-provider repos: private clone + identity for GitLab / Bitbucket #5

Description

@serge-ivo

Problem

The coding ENGINE is already provider-agnostic (it git-clones any URL or runs a local path, then drives Claude Code). What's GitHub-specific is only: (a) private-clone tokens via the GitHub App, (b) repo listing, (c) issues. So public GitLab/Bitbucket repos and local checkouts already work; only PRIVATE clone + listing for non-GitHub providers is missing.

Approach

  • A small RepoProvider abstraction for auth: GitHub App (today) + per-provider PAT/OAuth (GitLab, Bitbucket) for private clone tokens.
  • Store provider credentials with the existing envelope-encryption (same scheme as user_api_keys).
  • "Add repo" accepts any provider's clone URL; private ones resolve the right token.

Scope

  • lib/repo-providers.ts (token resolution by host), credentials storage, add-repo wiring.
  • Issue listing/import per provider is OUT of scope here (handled by the kanban issue's adapters).

Acceptance

  • Clone a private GitLab/Bitbucket repo by URL after connecting a PAT; local + public flows unchanged.

Priority

Low until a user asks — cloning already covers the common case. Tracked so it's not forgotten.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions