# Deploying with Custom Plugins

Please visit the [Astral API Portal Launcher](https://app.astral.sh) to configure and download your API Portal.

1. Open a local development environment with tools including [Git](https://git-scm.com/) for source version control, and [Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to install and run the Deploy CLI locally.
2. With the template repository, create an `.env.local` at the root of the project and provide any necessary environment variables.
3. Next, run the development server:

```markup
npm run dev
# or
yarn dev
```

4\. Open [http://localhost:3000](http://localhost:3000/) with your browser to see the result. You can start customizing your API developer portal by modifying `portal.config.js`. Refresh your page to see changes.

5\. For connecting your custom API Authentication, write an internal API to `getTeam`, `createCredentia`l, `rotateCredential`, and `deleteCredentials`&#x20;

![](https://344324742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yq3fV353s4UTq6XBdxK%2Fuploads%2FvGK1EHAEFKFiEkYYSffa%2FCustom%20Auth%20API%20Side.png?alt=media\&token=d96d52e3-f861-438b-9581-2f6473583b51)

6\. For User Management and Team Management, either create a free Auth0 account, and input the M2M credentials, or write a bespoke setup for your user/team configuration (login screen, hierarchy, etc.). &#x20;

\----&#x20;

Example `portal.config.js`to visual:&#x20;

![](https://344324742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yq3fV353s4UTq6XBdxK%2Fuploads%2Ft921pIultpCNdpslAo2t%2FPortal.Config%20.png?alt=media\&token=c7fc8fe9-4630-4cda-a3d3-7d0f5a50850d)

![View of the Admin Dashboard](https://344324742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yq3fV353s4UTq6XBdxK%2Fuploads%2FbSN5Ntm9IQEpdYUaJCx8%2FAdmin%20Local%20.png?alt=media\&token=75a75ac2-6c66-4359-af80-071a1fa4f5a2)

![Customer API Portal View](https://344324742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yq3fV353s4UTq6XBdxK%2Fuploads%2Fq2dYBSZdNUKMIgL01vdY%2FAdmin%20View.png?alt=media\&token=80923450-00c6-4bd6-9dd4-287953f3a7b0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://astral-dx.gitbook.io/astral-dx/guides/deploying-with-custom-plugins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
