SkyLaunch is an interactive script for creating instances in Oracle Cloud Infrastructure (OCI). With SkyLaunch, you can easily configure and deploy virtual machines (VMs) while benefiting from automatic retries across multiple availability domains. This script is particularly advantageous for free-tier users who cannot use capacity reservations, ensuring that you can secure available capacity as soon as it becomes free.
![]() |
![]() |
Run the following command to download, install dependencies, and run SkyLaunch:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/g3ntrix/SkyLaunch/main/setup.sh)"Clone the repository:
git clone https://github.com/g3ntrix/SkyLaunch.git
cd SkyLaunch- Interactive Setup: User-friendly prompts guide you through the initial configuration.
- Configuration Management: Easily update and view your configuration settings.
- SSH Key Support: Option to deploy instances with or without SSH public keys.
- Automated Retries: Automatically retries instance creation across multiple availability domains if capacity is unavailable.
- Dynamic Resource Fetching: Automatically fetches available shapes and images based on selected criteria.
- Maximize Free-Tier Benefits: Free-tier users can't use capacity reservations. SkyLaunch ensures you can secure capacity as soon as it becomes available.
- Time-Saving: Automates the process of checking and retrying instance creation, saving you from manual intervention.
- Flexibility: Supports various shapes and images, allowing you to choose the best configuration for your needs.
- Ease of Use: The script’s interactive nature makes it accessible even for those who are not familiar with OCI.
- Python 3.x
- OCI
- colorma
- pip
-
OCI CLI Configuration: Ensure you have the OCI CLI configured with your credentials. If you don't have the OCI CLI installed, follow these steps:
- Install the OCI CLI: Follow the instructions in the OCI CLI Installation Guide.
- Configure the OCI CLI:
This will prompt you to enter your OCI credentials and create a configuration file at
oci setup config
~/.oci/config.
-
SSH Keys: If you wish to use SSH keys for accessing your instances, generate a public-private key pair if you don't have one:
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
Use the path to your public key (e.g., ~/.ssh/id_rsa.pub) during the script setup.
Gather the following OCIDs from the OCI Console:
- Compartment OCID: Navigate to Identity > Compartments and find the OCID of the compartment where you want to create instances.
- Subnet OCID: Navigate to Networking > Virtual Cloud Networks, select your VCN, and find the OCID of the subnet where you want to place your instances.
For optimal performance, run this script on a VPS or a computer with constant network access that remains powered on. Use tools like screen or tmux to keep the session open. For example, you can use tmux and then run the installation script.

