Autumn
  • Welcome
    • Our Links
  • Getting Started
    • Installation
    • Configure Environment Variables
    • Features
  • Autumn Framework
    • The Framework
      • Installation
      • Configuration
      • Dependencies
      • Quick Start
      • Interaction Examples
  • Deploy Agent
  • The Architecture
  • Company
    • About
    • Terms Of Service
    • Privacy Policy
Powered by GitBook
On this page
  • Configuring Environment Variables
  • ๐Ÿ“„ Sample .env Setup
  • ๐Ÿ›  Working with Environment Variables
  • ๐Ÿ“ฆ Runtime Libraries
  • ๐Ÿงช Developer Tools
  1. Getting Started

Configure Environment Variables

Configuring Environment Variables

Autumn depends on environment variables to securely manage API keys, wallet credentials, and runtime settings. Before running your agent, you'll need to define these values in a .env file placed at the root of your project.


๐Ÿ“„ Sample .env Setup

envCopyEdit# Core credentials
PRIVATE_KEYPAIR=<YOUR_PRIVATE_KEYPAIR>             # Wallet keypair used for deploying to Solana
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>               # OpenAI key for AI tasks
RPC_ENDPOINT=https://api.mainnet-beta.solana.com   # Solana RPC provider of choice

# Trading logic
ACTION=buy                                          # Choose "buy" or "sell"
MINT=<TOKEN_MINT_ADDRESS>                           # Token's mint address
AMOUNT=10000                                        # Quantity of tokens or SOL to transact

# Debug mode
NODE_DEBUG=module

๐Ÿ›  Working with Environment Variables

Once your .env file is set up, Autumn will automatically load these values using the dotenv package during runtime. This keeps your config flexible and your keys secure.


๐Ÿ“ฆ Runtime Libraries

Here are the key packages that Autumn depends on for core functionality:

Dependency
Version
Role

@solana/web3.js

^1.98.0

Interface for interacting with the Solana blockchain

dotenv

^16.4.7

Loads variables from .env files

firebase

^11.1.0

Enables Firebase auth and data storage

node-fetch

^3.3.2

Performs HTTP requests

form-data

^4.0.1

Handles multipart data for HTTP POST

openai

^4.77.3

Connects with OpenAI for AI features

bs58

^6.0.0

Encodes/decodes base58 for Solana key handling


๐Ÿงช Developer Tools

Used to streamline development and TypeScript support:

Dependency
Version
Purpose

typescript

^5.7.3

Type safety and code structure

ts-node

^10.9.2

Executes TypeScript files in Node.js

@types/node-fetch

^2.6.12

Type definitions for node-fetch

tsconfig-paths

^4.2.0

Resolves module paths in TypeScript projects

PreviousInstallationNextFeatures

Last updated 2 days ago