Instant.bot documentation
Instant.botJoin DiscordLoginSign up
  • Introduction
  • Getting started
    • Creating a new agent
  • Customizing your agent settings
  • Modifying instruction prompt
  • Installing tools via packages
  • Managing secrets via API keychain
  • Private tools via custom code
  • Optimizing tool calls
  • Archiving your agent
  • Removing your custom code
  • Specifications
    • Package specification
    • API keychain specification
  • Using your agent
    • On the web
    • Discord
    • Slack
    • Website embed
    • Developer API
  • Package registry
  • Publishing via command line
  • Publishing via online IDE
  • Browsing and finding packages
  • Archiving packages
  • Resources
    • Instant.bot
    • ibot command line tools
    • Instant API
Powered by GitBook
On this page
  • Introduction to the online IDE
  • Features
  • Creating a new package
  • Online IDE basics
  • Deploying packages via the Online IDE
  • Testing API keychains and secret sharing
  • Installing NPM packages
  • More features

Was this helpful?

Edit on GitHub

Publishing via online IDE

Creating packages from our online IDE

PreviousPublishing via command lineNextBrowsing and finding packages

Last updated 20 days ago

Was this helpful?

Introduction to the online IDE

Our online IDE provides a frictionless way to extend your agents with custom tools without leaving your web browser. It is ideal for lone developers prototyping simple tools and testing new flows. If you are building something comprehensive, we recommend using our command line tools: Publishing via command line.

Features

Our online IDE comes with a bunch of features that make iterating on new tools a breeze;

  • Automatically install NPM packages

  • Use it like Postman: Configure REST payloads right from the IDE

  • Run endpoints directly from the browser

  • See streaming log results, errors and more

Creating a new package

To create a new package using our online IDE find the Create package button on , or simply visit .

Once you're on the new package page, you'll see a prompt:

You can choose your package name and environment.

  • Package name: must be alphanumeric, lowercase, single hyphens allowed

  • Environment: development or staging, we recommend development to start

After you choose these, just hit Create to create your package!

Online IDE basics

The online IDE has a few basic components:

  • Directory view: Manage all of your files in your package, just like a traditional IDE.

    • Making changes to the directory structure (adding files, etc.) will automatically deploy your package to keep the live version in sync with the editor.

  • Code editor: Make changes to your code. Complete with multi-cursor select (cmd+d) and find and replace.

  • Publish: Once your package is ready, promote it to a staging or production environment

  • Save: Save any changes to the currently active file.

    • This will automatically deploy your package to keep the live version in sync with the editor.

  • Configure payload: Change the GET, POST, PUT, or DELETE parameters you test with for this file when you send an HTTP request. You can also choose which method you would like to send.

  • Send HTTP request: Used for testing. You can configure which HTTP method you're using from the Configure payload button.

  • Request results / assistant: See the results of running and testing your endpoint here.

Deploying packages via the Online IDE

Our online IDE is always synced with package deployments.

Any changes you make in the online IDE are instantly deployed to our package registry. Including errors! We recommend building packages in a development environment first, and then once stable, promoting to a staging or production environment.

Testing API keychains and secret sharing

In the toolbar for our online IDE you'll notice a Test keychain tab:

Clicking on this tab brings you to your Test keychain for this project. This keychain can only ever be used with this package to test it. You can use it to set your own keychain secrets that you may want end users to configure.

Once you've added keys here, you'll need to update instant.package.json like so (make sure to keep your package name the same).

{
  "name": "@keith/my-package",
  "keychain": {
    "required": [
      {
        "name": "STRIPE_SECRET_KEY",
        "description": "Your Stripe secret key"
      }
    ]
  }
}
export default async function (context) {
  const apiKey = context.keychain.key('STRIPE_SECRET_KEY');
  const stripe = new Stripe(apiKey);
  // go nuts!
}

Installing NPM packages

NPM package install automatically when you write your import lines.

NPM package installation happens automatically as part of the deployment process. When you add in new import lines, like import Stripe from 'stripe', our IDE will automatically install the packages for you.

More features

Our IDE has more quality-of-life features baked in:

  • Find and replace

  • Multi-cursor select

    • cmd+d to highlight next matching word

    • cmd+click to add a cursor

    • esc to cancel multi-cursor select

  • Uploading files

  • Auto-indenting on paste

    • Intelligently matches copied code to IDE settings

You can then access the STRIPE_SECRET_KEY (or whatever parameter you've added) via the , like so:

We hope you enjoy! Please send any feedback on the IDE to .

feedback@instant.bot
instant.bot/packages
instant.bot/packages/new
The context argument
Find the Create package button
Enter your package name and environment
Main components of the online IDE
Test keychain tab
Add test keys
Type an import, install a package automatically