Oracle OCI - Gateway Sign-In Setup
Connect OCI Generative AI to QuilrAI without giving QuilrAI an Oracle API key or a customer-owned signing key. Your OCI administrator creates a cross-tenancy policy that admits QuilrAI's gateway IAM group, and QuilrAI signs each request using its own OCI identity.
This setup supports:
- OpenAI-compatible Chat Completions through the
oracleprovider - OpenAI-compatible Responses through the
oracle_responsesprovider
What QuilrAI gives you
Copy these public OCIDs - you will paste them into your OCI policy in step 2.
QuilrAI OCIDs for your Admit policy
ocid1.tenancy.oc1..aaaaaaaabcp64qggjkgspajuc3o5a66t6isnz5rudglu5vnmft3apun4mevqUsed in the Define tenancy QuilrAI statement.
ocid1.group.oc1..aaaaaaaajwg3vbuahquqywu46gx6xv23a6yiyb4lf3bbedxnguvvncq3tnlqUsed in the Define group QuilrGateway statement.
These OCIDs identify QuilrAI to Oracle. They are not credentials and cannot be used to sign requests.
1. Choose the access scope
Both scopes work with the same QuilrAI API key configuration:
The scope is controlled entirely by your OCI policy. You do not select tenancy-wide or compartment-only access in the QuilrAI dashboard. In both cases, you enter the specific project and compartment that each QuilrAI provider should use.
Tenancy-wide access is supported, but it grants the QuilrAI gateway group access to eligible Generative AI resources across your tenancy. Prefer a dedicated compartment when your OCI structure permits it.
2. Create the cross-tenancy policy
Before clicking Create Policy, set the Compartment picker on the left to your root compartment (it carries the tenancy name). Cross-tenancy Admit statements are only valid in the root compartment.
Exact steps in the Create Policy dialog:
- Name:
quilr-generative-ai-access - Description:
Cross-tenancy access for the QuilrAI LLM Gateway - Compartment: your root compartment (already selected if you set the picker above)
- Toggle Show manual editor on
- Paste one of the policy blocks below, replacing the compartment placeholder
- Click Create
Recommended: one compartment
Replace <YOUR-GENERATIVE-AI-COMPARTMENT-NAME> with the compartment containing your Generative AI project:
Define tenancy QuilrAI as ocid1.tenancy.oc1..aaaaaaaabcp64qggjkgspajuc3o5a66t6isnz5rudglu5vnmft3apun4mevq
Define group QuilrGateway as ocid1.group.oc1..aaaaaaaajwg3vbuahquqywu46gx6xv23a6yiyb4lf3bbedxnguvvncq3tnlq
Admit group QuilrGateway of tenancy QuilrAI to use generative-ai-family in compartment <YOUR-GENERATIVE-AI-COMPARTMENT-NAME>
Admit group QuilrGateway of tenancy QuilrAI to manage generative-ai-response in compartment <YOUR-GENERATIVE-AI-COMPARTMENT-NAME>
Alternative: entire tenancy
Define tenancy QuilrAI as ocid1.tenancy.oc1..aaaaaaaabcp64qggjkgspajuc3o5a66t6isnz5rudglu5vnmft3apun4mevq
Define group QuilrGateway as ocid1.group.oc1..aaaaaaaajwg3vbuahquqywu46gx6xv23a6yiyb4lf3bbedxnguvvncq3tnlq
Admit group QuilrGateway of tenancy QuilrAI to use generative-ai-family in tenancy
Admit group QuilrGateway of tenancy QuilrAI to manage generative-ai-response in tenancy
The generative-ai-family statement enables Generative AI access, including Chat Completions. The generative-ai-response statement enables the Responses API.
If you will use only Chat Completions, omit the generative-ai-response statement.
3. Collect your Oracle target values
You need four non-secret values from OCI. Keep them handy - you paste them into QuilrAI in step 4.
OCI region
Use the region identifier such as us-chicago-1, not the display name such as US Midwest (Chicago). This must be the region that hosts your Generative AI project.
Project OCID
On the project details page, hover the OCID value and click Copy. Confirm the compartment shown on that page is the one you covered in your Admit policy.
Compartment OCID
Model ID
Oracle model discovery is manual in QuilrAI, so copy the model ID exactly as Oracle spells it, and only from the region you selected above.
4. Configure the provider in QuilrAI
Editing an existing key works too - open it and add Oracle as an additional provider.
In the provider form:
- Set Provider to
Oracle(Chat Completions) orOracle Responses(Responses API) - Set Authentication to Gateway sign-in (
gateway_user_principal) - Paste the region, project OCID, and compartment OCID from step 3
- Add the model IDs you want to expose
- Click Save
Chat Completions
Responses
Do not enter an Oracle API key, user OCID, tenancy OCID, fingerprint, private key, session token, or passphrase. QuilrAI supplies its gateway signing identity at request time.
5. Verify the connection
Save the provider, then run its model validation.
A successful validation confirms all of the following:
- The project and compartment IDs are correct
- The model is available in the selected region
- Your Admit policy matches QuilrAI's tenancy and group
- Oracle authorizes the requested API
Policy changes can take a few minutes to propagate. If the first validation fails immediately after creating the policy, wait briefly and retry.
Revoke access
Deleting the policy, or removing its two Admit statements, revokes QuilrAI's access immediately. No credential rotation is required because no customer signing key was shared.