Configure the VS Code Project Folder

  1. After your administrator has setup the public client in Oracle IDCS, copy the lines in the env.properties section from the AI Studio CLI tab, part of Credentials tab in AI Agent Studio.
    The lines will be similar to these lines:
    aistudio.fa-host = https://fa-eqkj-dev18-saasfademo1.ds-fa.oraclepdemos.com
    aistudio.clientId=7e4190889ab144539f494768bd49f6fc
    aistudio.orchestratorTokenUrl=https://fa-eqkj-dev18-saasfademo1.ds-fa.oraclepdemos.com/api/fusion-ai/orchestrator/authz/v1/tokens
    aistudio.primaryScope=urn:opc:resource:fusion:eqkj-dev18:fusion-ai/
    aistudio.redirectUri=http://127.0.0.1:43188/callback
    aistudio.tenant=https://idcs-2ccbf0b4d0654430ac37d210f6efd9a8.identity.oraclecloud.com:443
  2. Paste the lines to the env.properties file in the project root folder of your VS Code project folder. If you don't see the file in your root project folder, create the file and paste the values.
  3. In VS Code, run the Show and run Command action and select Fusion AI Studio: Configure Authentication
    1. Select OAuth / Token Authentication.
    2. Sign in using your credentials.
  4. You can also open a terminal and run the command aistudio authenticate.

Here are some common auth commands in aistudio:

  • aistudio authenticate
  • aistudio whoami
  • aistudio logout