# Configuring apk

This page explains how to configure apk to pull packages from the Seal artifact server based on your existing setup.

Make sure you have the access token for the server ready.

### Pull directly from the artifact server

1. Download the Seal artifact server public key file:

{% file src="/files/jmSVhbLaCQ3TMVNmOEj0" %}

2. Save the file in `/etc/apk/keys/sealsecurity.rsa.pub` .
3. Run the following command:

```bash
echo https://$PROJECT_ID:$TOKEN@apk.sealsecurity.io/seal/main >> /etc/apk/repositories
```

In the `$PROJECT_ID` put the name of your project. This value will later be used in the reporting to indicate which project pulled which vulnerable package.

In the `$TOKEN` put the access token to the Seal artifact server.


---

# 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://docs.sealsecurity.io/fundamentals/artifact-server/configuring-the-package-manager/configuring-apk.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.
