# Configuring Bundler

This page explains how to configure the Bundler package manager 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. Open the project's `Gemfile`.
2. Set your token to the artifact server in the `SEAL_TOKEN` environment variable, and put the project's ID in the `PROJECT_ID` environment variable.
3. Find the source. Usually it's:

```ruby
source 'https://rubygems.org'
```

Replace it with:

```ruby
source "https://#{ENV['SEAL_PROJECT']}:#{ENV['SEAL_TOKEN']}@ruby.sealsecurity.io 
```

4. Install the packages:

```bash
bundle install
```


---

# 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-bundler.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.
