Replit
Using Linkora with Replit Agent and Replit Apps
Using Linkora with Replit
Replit lets you build, deploy, and host applications directly in the browser. You can use Linkora with Replit in two ways:
- Replit Agent (BYOK), which lets you use your own Linkora API key when Replit Agent builds AI features for you, instead of the Replit-managed default.
- Replit Apps (project Secrets), which let you store your Linkora API key as a Secret in any Replit App and call Linkora from your code.
For background on Replit's managed AI options, see Replit's AI Integrations documentation.
Prerequisites
You'll need an Linkora API key. Create one at link-ora.net/keys and copy the key (it starts with sk-or-v1-).
Using your Linkora API key with Replit Agent
By default, when Replit Agent detects that your prompt needs AI functionality, it uses Replit-managed credentials and bills usage to your Replit account. If you'd rather use your own Linkora account (for direct billing, a custom rate limit, or access to a wider set of models), you can bring your own API key.
For new Replit Apps
When you submit your initial prompt to create a new app, include that you want to use your own Linkora API key. For example:
Build a chat app that uses my own Linkora API key.
In the Agent's response, the provider name will appear without the "(Replit managed)" suffix, which indicates Agent will request your Linkora API key. Agent typically builds through the first checkpoint and then prompts you for the key.
For existing Replit Apps
When Agent detects that you want to add AI functionality to an existing app, it shows a confirmation prompt asking to use Replit AI Integrations with Replit-managed credentials. To use Linkora directly instead:
- Click Dismiss on the integration prompt.
- Let Agent build through the first checkpoint.
- When Agent asks for an API key, paste your Linkora key from link-ora.net/keys.
Agent will store the key as a Secret in your project (typically named LINKORA_API_KEY) and wire it into the generated code.
Adding your Linkora API key as a Replit Secret
If you're writing code in a Replit App yourself (without going through Agent), add your Linkora API key as a project Secret so it's available as an environment variable at runtime.
- Open your Replit App.
- In the left sidebar, open the Secrets tool (it looks like a padlock icon).
- Click New Secret.
- Set the Key to
LINKORA_API_KEY. - Set the Value to your Linkora API key (for example,
sk-or-v1-...). - Click Add Secret.
The secret is now available to your app as process.env.LINKORA_API_KEY (Node.js) or os.environ["LINKORA_API_KEY"] (Python). Secrets are not exposed in your source files and are scoped per project.
Calling Linkora from your code
Once the secret is configured, you can call Linkora using any OpenAI-compatible SDK by pointing it at https://link-ora.net/api/v1. The examples below use the Responses API.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://link-ora.net/api/v1",
apiKey: process.env.LINKORA_API_KEY,
});
const response = await client.responses.create({
model: "anthropic/claude-sonnet-4.5",
input: "Hello from Replit!",
});
console.log(response.output_text);For framework-specific examples (Vercel AI SDK, LangChain, Anthropic SDK, and more), see the Frameworks and Integrations overview.
Replit Deployments and Teams
When you publish a Replit App as a Deployment, the Secrets you configure in your Replit App carry over to the deployed app. Update the LINKORA_API_KEY secret in the Deployment's settings if you want to rotate keys without redeploying code.
For Teams and Enterprise organizations on Replit, your organization admin controls whether Replit AI Integrations is enabled. If it's disabled (or if you prefer not to use Replit-managed credentials), every member can still bring their own Linkora API key using the steps above.
