Auto-Login Supported

Cody + TigerMail

Integrate TigerMail with Cody by Sourcegraph. Sourcegraph's AI coding assistant with codebase context. Get working email code in seconds with AI-powered setup.

Cody Features

Automatic device authorization

  • Full codebase context
  • Multi-repo understanding
  • Intelligent completions
  • VS Code & JetBrains support
  • Code search integration
Auto-Login Enabled

Cody can automatically open your browser to authenticate with TigerMail. No manual API key copying needed.

Integration Steps

1

Open Cody chat

Start a Cody chat session in your IDE

2

Provide context

Paste our instructions and reference relevant files

3

Authenticate

Follow the device authorization flow

4

Apply generated code

Cody generates code matching your codebase style

Generated Code Example

This is an example of what Cody will generate for you.

// Cody matches your codebase patterns:
import { logger } from "@/lib/logger";
import { AppError } from "@/lib/errors";

export class EmailService {
  private apiKey: string;
  private baseUrl: string;

  constructor() {
    this.apiKey = process.env.TIGERMAIL_API_KEY!;
    this.baseUrl = "https://tigermail.io";
  }

  async send(options: EmailOptions): Promise<EmailResult> {
    try {
      const response = await fetch(`${this.baseUrl}/api/v1/send`, {
        method: "POST",
        headers: {
          "Authorization": `Bearer ${this.apiKey}`,
          "Content-Type": "application/json",
        },
        body: JSON.stringify(options),
      });

      if (!response.ok) {
        throw new AppError("Email send failed", response.status);
      }

      logger.info("Email sent successfully", { to: options.to });
      return response.json();
    } catch (error) {
      logger.error("Email error", error);
      throw error;
    }
  }
}

Start using Cody with TigerMail

Get 1,000 free emails per month. Set up in under 5 minutes.