AI Agents
Deploy and manage Eliza, ComfyUI, and custom AI agents with ease
Learn more
Deploy AI agents, cloud functions and sites to decentralized infrastructure
npm install -g @alternatefutures/cli
af loginnpm install @alternatefutures/sdk# Initialize and deploy a site
af sites init
af sites deploy
# List your sites
af sites list
# Upload files to IPFS
af storage add ./my-filesimport { AlternateFuturesSdk, PersonalAccessTokenService } from '@alternatefutures/sdk/node';
// Initialize the SDK
const af = new AlternateFuturesSdk({
accessTokenService: new PersonalAccessTokenService({
personalAccessToken: process.env.AF_TOKEN,
projectId: process.env.AF_PROJECT_ID,
}),
});
// List your sites
const sites = await af.sites().list();
console.log('Sites:', sites);
// Upload to IPFS
const result = await af.ipfs().add('./dist');
console.log('CID:', result.pin.cid);