Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (23 sloc) 942 Bytes

Client Configuration

.. module:: ai.backend.client.config
.. currentmodule:: ai.backend.client.config

The configuration for Backend.AI API includes the endpoint URL prefix, API keypairs (access and secret keys), and a few others.

There are two ways to set the configuration:

  1. Setting environment variables before running your program that uses this SDK.
  2. Manually creating :class:`APIConfig` instance and creating sessions with it.

The list of supported environment variables are:


Other configurations are set to defaults.

Note that when you use our client-side Jupyter integration, BACKEND_VFOLDER_MOUNTS is the only way to attach your virtual folders to the notebook kernels.

.. autofunction:: get_env

.. autofunction:: get_config

.. autofunction:: set_config

.. autoclass:: APIConfig
You can’t perform that action at this time.