---
url: /services/managed/service-configuration.md
description: >-
  Configure runtime, resources, provider access tokens, and environment
  variables for a deployed Managed Service.
---

# Service Configuration

## Runtime Configuration

After you have created a new service, you can change the runtime configuration on the service detail page.
From the toolbar on the top right, under the "Edit" section click "Runtime Configuration".

You can change the runtime, to be either "Python Template" or "Docker".
You find more information on the [Runtime Interface](runtime-interface) page.

Additionally, you can choose to add your configured provider access tokens to the runtime as environment variables.
If you enable this option, the following environment variables are set depending on the backend provider:

* IBM Quantum: `QISKIT_IBM_TOKEN` (API key value)
* IBM Cloud: `QISKIT_IBM_TOKEN` (API key value), `QISKIT_IBM_INSTANCE` (Service CRN value), `QISKIT_IBM_CHANNEL` (constant value: ibm\_cloud)
* D-Wave Leap: `DWAVE_API_TOKEN` (API key value)

The Qiskit and D-Wave Ocean SDK may require special instrumentation to use these variables.

Further, you can add additional environment variables to store other API keys, configuration values, or secrets.
You can access them in your code like regular environment variables, for example with `os.getenv()` in Python.

## Resource Configuration

After you have created a new service, you can change the resource configuration on the service detail page.
