ROFL Deployment

Deploy your own private ekai-gateway instance on Oasis Network using ROFL (Runtime Off-chain Logic).

Why ROFL?

  • Private: Your API keys stay secure, in a TEE (Trusted Execution Environment)

  • Isolated: Each user deploys their own instance

  • Verifiable: Code execution can be verified on-chain

Prerequisites

  1. Oasis CLI (v0.18.x+)

    curl -fsSL https://get.oasis.io | bash
    oasis --version
  2. Docker

    docker --version
  3. Funded Wallet

    oasis wallet create my_wallet
    # Get testnet tokens: https://faucet.testnet.oasis.io/
    oasis wallet show my_wallet --network testnet --paratime sapphire
  4. API Keys (at least one): OpenAI, Anthropic, or xAI

Deployment

Your Endpoints

After oasis rofl machine show, you'll see:

Testing

Replace m1234 with your actual domain from the output above.

Use with OpenAI-Compatible Tools

Useful Commands

Command
Description

oasis rofl show

View app status

oasis rofl machine show

View endpoints and machine info

oasis rofl machine logs

View logs

oasis rofl secret list

List secrets

Troubleshooting

"app identifier already defined": Remove deployments section from rofl.yaml and run oasis rofl create again.

"forbidden": You're using a different wallet than the one that created the app. Check with oasis wallet list.

Build failures: Ensure Docker is running (docker ps) and you have disk space (df -h).

Insufficient funds: Get testnet tokens from https://faucet.testnet.oasis.io/

Resources

Last updated