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
.env
Setup๐ 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:
@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:
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
Last updated