> ## Documentation Index
> Fetch the complete documentation index at: https://docs.packagesss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bring Your Own Key (BYOK)

> Using your own API keys to bypass credits

export const GridImage = ({window, src, preview = false, img_width = 200, height = 300}) => {
  var host = preview ? '' : 'https://mintlify.s3-us-west-1.amazonaws.com/packages';
  return <div className="grid-image-bg mt-3 mb-3 flex align-items-center" style={{
    alignItems: 'center',
    justifyContent: 'center',
    position: 'relative',
    height,
    width: '100%'
  }}>

    <img src={`${host}${src}`} className={'m-0'} width={img_width} style={{
    zIndex: 2,
    width: '100%',
    maxWidth: img_width,
    border: '1px solid #ccc',
    borderRadius: 5,
    boxShadow: '5px 5px rgba(0,0,0,0.25);'
  }} />

    <div style={{
    transform: 'translateX(-50%)',
    left: '50%',
    top: 0,
    position: 'absolute',
    height: '100%',
    width: '100%',
    zIndex: 0,
    overflow: 'hidden',
    pointerEvents: 'none'
  }}>
      <img src={`${host}/images/grid-bg-trans.png`} className="m-0" />
    </div>
  </div>;
};

### Want to use your own keys?

packages gives you a way to use your own API keys to bypass credits.

This is useful if you have your own API keys for the underlying A.I. provider(s) and want to use them instead of consuming credits.

This is the most cost-effective way to run packages.

### Steps

<Steps>
  <Step title="Go to the Keys page">
    On the left hand menu when logged in, click on the "Keys" menu item.

    <GridImage img_width={300} src={'/images/keys-menu.png'} />
  </Step>

  <Step title="Add a new key">
    Press the green "+" button at the top right to add a new key.

    <GridImage img_width={500} src={'/images/keys-green-button.png'} />
  </Step>

  <Step title="Provide the key">
    Choose a provider and send over your API key. It will be stored using AES-256 encryption.

    <GridImage img_width={300} src={'/images/add-modal.png'} />
  </Step>
</Steps>

Now your keys are stored and you can use them to run packages without consuming credits.

### Using your keys

When you run a package, you will have the ability to select which key(s) to use.

<GridImage img_width={300} src={'/images/use-key-overlay.png'} />

Simply select the key you want to use and the package will run using that key.

If that package can make use of the key, it will — and no credits will be consumed.

### Selecting multiple keys

Packages lets you select multiple keys for the same provider. This will allow you to randomly rotate between them.

Just check each key you want to use.

<GridImage img_width={300} src={'/images/key-dropdown.png'} />

### Have more questions?

If you have more questions about using your own keys, feel free to e-mail us at [help@nichesss.com](mailto:help@nichesss.com)
