---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/custom-repo-templates.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/operations/custom-repo-templates.md
  - href: en/sourcecraft/operations/custom-repo-templates.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
title: Working with custom repository templates in SourceCraft
description: Configuring a custom repository template and creating a template-based repository in SourceCraft
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt


# Working with custom repository templates in SourceCraft

<!-- source: en/_includes/sourcecraft/custom-repo-templates-intro.md -->
SourceCraft supports _custom repository templates_. You can set up a template repository with source code, [CI/CD](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ci-cd.md) configuration, `README.md` and [AGENTS.md](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/agentsmd.md) files, [approval rules](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/code-review.md), and other project files, and then use it when creating new repositories.
<!-- endsource: en/_includes/sourcecraft/custom-repo-templates-intro.md -->

## Making a custom template out of a repository {#make-custom-template}

1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Select a repository you want to use as a template.
1. Under ![image](../../_assets/console-icons/gear.svg) **Repository settings** on the repository page, go to ![image](../../_assets/console-icons/circle-exclamation.svg) **General**.
1. Under **Repository template**, enable **This repository is a template**.
1. Click **Update settings**.

## Creating a repository from a custom template {#create-from-custom-template}

1. Open the SourceCraft [home page](https://sourcecraft.dev).
1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
1. Next to the repository you want to base the new one on, click **Use template**.
1. <!-- source: en/_includes/sourcecraft/repo-create-details.md -->
   Under **Your new repository details**:

   <!-- source: en/_includes/sourcecraft/repo-fork-create-details.md -->
   * In the **Owner** field, select the organization to create the repository in.
   * In the **Name** field, specify a name for the repository. 
          
     The name must be unique within the organization. The name may contain the following [ASCII characters](https://ru.wikipedia.org/wiki/ASCII): lowercase and uppercase Latin letters, numbers, commas, hyphens, and underscores.

     The address to access the repository at is displayed below the name.

   * Optionally, in the **Description** field, enter a description for the repository.
   <!-- endsource: en/_includes/sourcecraft/repo-fork-create-details.md -->
   <!-- endsource: en/_includes/sourcecraft/repo-create-details.md -->
1. <!-- source: en/_includes/sourcecraft/repo-create-visibility.md -->
   In the **Visibility** field, select the repository access type:

   <!-- source: en/_includes/sourcecraft/repo-visibility-options.md -->
   * **Public**: All internet users will be able to view the repository without authentication. Only invited users will be able to modify the repository.
   * **Internal**: Only users from the organization housing the repository will have access to view and edit the repository.
   * **Private**: Only invited users will have access to view and edit the repository.

   You can [change](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-privacy.md) repository access type at any time.
   <!-- endsource: en/_includes/sourcecraft/repo-visibility-options.md -->
   <!-- endsource: en/_includes/sourcecraft/repo-create-visibility.md -->
1. Click **Create repository**.

#### Useful links {#see-also}

* [Repositories](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/index.md#repos)
* [Creating a repository](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-create.md)
* [Importing or mirroring a repository](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/migration.md)
* [Changing repository settings](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/repo-edit.md)
