> ## Documentation Index
> Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Alt-Gateway Overview

> Building non-Go gateway clients using the remote signer architecture: livepeer-python-gateway and the off-chain integration pattern.

export const TableCell = ({children, align = "left", header = false, style = {}, className = "", ...rest}) => {
  const Component = header ? "th" : "td";
  return <Component className={className} style={{
    padding: "0.75rem 1rem",
    textAlign: align,
    border: header ? "none" : "1px solid var(--lp-color-border-default)",
    ...style
  }} {...rest}>
      {children}
    </Component>;
};

export const TableRow = ({children, header = false, hover = false, style = {}, className = "", ...rest}) => {
  const rowId = `table-row-${Math.random().toString(36).substr(2, 9)}`;
  return <>
      {hover && <style>{`
          #${rowId}:hover {
            background-color: var(--lp-color-bg-card);
          }
        `}</style>}
      <tr id={rowId} className={className} style={{
    ...header && ({
      backgroundColor: "var(--lp-color-accent-strong)",
      color: "var(--lp-color-on-accent)",
      fontWeight: "bold"
    }),
    ...style
  }} {...rest}>
        {children}
      </tr>
    </>;
};

export const StyledTable = ({children, variant = "default", style = {}, className = "", ...rest}) => {
  const wrapperVariants = {
    default: {
      border: "1px solid var(--lp-color-border-default)",
      backgroundColor: "var(--lp-color-bg-card)",
      overflow: "hidden"
    },
    bordered: {
      border: "2px solid var(--lp-color-accent)",
      backgroundColor: "var(--lp-color-bg-page)",
      overflow: "hidden"
    },
    minimal: {
      border: "none",
      backgroundColor: "transparent",
      overflow: "visible"
    }
  };
  return <div data-docs-styled-table-shell className={className} style={{
    width: "100%",
    padding: 0,
    margin: 0,
    ...wrapperVariants[variant],
    ...style
  }} {...rest}>
      <table data-docs-styled-table style={{
    width: "100%",
    borderCollapse: "collapse",
    borderSpacing: 0,
    margin: 0,
    backgroundColor: "transparent"
  }}>
        {children}
      </table>
    </div>;
};

export const CenteredContainer = ({children, maxWidth = "800px", padding = "0", preset = "default", width = "", minWidth = "", marginRight = "", marginBottom = "", textAlign = "", style = {}, className = "", ...rest}) => {
  const presets = {
    default: {},
    fitContent: {
      width: "fit-content",
      minWidth: "fit-content"
    },
    readable70: {
      width: "70%",
      minWidth: "fit-content"
    },
    readable80: {
      width: "80%",
      minWidth: "fit-content"
    },
    readable90: {
      width: "90%"
    },
    wide900: {
      maxWidth: "900px"
    }
  };
  const presetStyle = presets[preset] || presets.default;
  return <div className={className} style={{
    maxWidth: presetStyle.maxWidth || maxWidth,
    margin: "0 auto",
    padding: padding,
    ...presetStyle.width ? {
      width: presetStyle.width
    } : {},
    ...presetStyle.minWidth ? {
      minWidth: presetStyle.minWidth
    } : {},
    ...width ? {
      width
    } : {},
    ...minWidth ? {
      minWidth
    } : {},
    ...marginRight ? {
      marginRight
    } : {},
    ...marginBottom ? {
      marginBottom
    } : {},
    ...textAlign ? {
      textAlign
    } : {},
    ...style
  }} {...rest}>
      {children}
    </div>;
};

export const CustomDivider = ({color = "var(--lp-color-border-default)", middleText = "", spacing = "default", style = {}, className = "", ...rest}) => {
  const spacingPresets = {
    default: {
      margin: "24px 0"
    },
    overlap: {
      margin: "-1rem 0 -1rem 0"
    },
    tight: {
      margin: "0 0 -1rem 0"
    },
    section: {
      margin: "0 0 -2rem 0"
    },
    sectionOverlap: {
      margin: "-1rem 0 -2rem 0"
    },
    deepOverlap: {
      margin: "-1rem 0 -1.5rem 0"
    }
  };
  const spacingStyle = spacingPresets[spacing] || spacingPresets.default;
  return <div role="separator" aria-orientation="horizontal" className={className} style={{
    display: "flex",
    alignItems: "center",
    ...spacingStyle,
    fontSize: style?.fontSize || "16px",
    height: "fit-content",
    ...style
  }} {...rest}>
      <span style={{
    marginRight: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
      </span>
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      {middleText && <>
          <Icon icon="circle" size={2} />
          <span style={{
    margin: "0 8px",
    fontWeight: "bold",
    color: color,
    opacity: 0.7
  }}>
            {middleText}
          </span>
          <Icon icon="circle" size={2} />
        </>}
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      <span style={{
    marginLeft: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <span style={{
    display: "inline-block",
    transform: "scaleX(-1)"
  }}>
          <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
        </span>
      </span>
    </div>;
};

export const LinkArrow = ({href, label, description, newline = true, borderColor, className = '', style = {}, ...rest}) => {
  const linkArrowStyle = {
    display: 'inline-flex',
    alignItems: 'center',
    justifyContent: 'center',
    gap: "var(--lp-spacing-1)",
    width: 'fit-content',
    ...borderColor && ({
      borderColor
    })
  };
  return <span className={className} style={style} {...rest}>
      {newline && <br />}
      <span style={linkArrowStyle}>
        <a href={href} target="_blank" rel="noopener noreferrer">
          {label}
        </a>
        <Icon icon="arrow-up-right" size={14} color="var(--lp-color-accent)" />
      </span>
      {description && description}
      {description && <div style={{
    height: "var(--lp-spacing-3)"
  }} />}
    </span>;
};

<CenteredContainer preset="readable90">
  <Tip>The remote signer architecture separates Ethereum payment signing from media routing, enabling Gateway implementations in Python, Node.js, or any other runtime without the full go-livepeer binary.</Tip>
</CenteredContainer>

***

go-livepeer's broadcaster mode is the canonical Gateway implementation. The remote signer architecture (added in go-livepeer PRs #3791 and #3822) makes it possible to build Gateway clients in other languages: your code handles media routing; a remote signer service handles all Ethereum payment operations.

The primary reference implementation of a non-Go Gateway is `livepeer/livepeer-python-gateway`.

<CustomDivider />

## Remote Signer Model

A Gateway performing transcoding or AI inference jobs must create probabilistic micropayment tickets signed by an Ethereum key. In the standard go-livepeer broadcaster, the node manages its own keystore. In the remote signer model, the signing operations are delegated to a separate signer service over HTTP.

This separation means:

* The Gateway implementation (media routing, Orchestrator selection, job submission) can be written in any language
* The signer service (ETH key management, ticket signing, balance management) runs as a separate process, typically go-livepeer in signer mode or a compatible implementation
* The Gateway connects to the signer via HTTP and passes unsigned tickets to it; the signer returns signed tickets

The Gateway still needs to communicate with the Livepeer Network protocol (Orchestrator discovery, job protocol, segment submission) but does not need the full go-livepeer codebase.

<CustomDivider />

## Livepeer Python Gateway

`livepeer/livepeer-python-gateway` is the reference Python Gateway implementation. It implements Orchestrator session management, payment ticket lifecycle, and live video job handling.

Key components:

<StyledTable variant="bordered">
  <thead>
    <TableRow header>
      <TableCell header>Class</TableCell>
      <TableCell header>Role</TableCell>
    </TableRow>
  </thead>

  <tbody>
    <TableRow>
      <TableCell>`OrchestratorSession`</TableCell>
      <TableCell>Manages a connection to a single Orchestrator, including payment state and capability negotiation</TableCell>
    </TableRow>

    <TableRow>
      <TableCell>`PaymentSession`</TableCell>
      <TableCell>Handles ticket lifecycle: creates unsigned tickets, calls the remote signer, tracks balance</TableCell>
    </TableRow>

    <TableRow>
      <TableCell>`LiveVideoJob`</TableCell>
      <TableCell>Manages a persistent `live-video-to-video` inference session including trickle stream setup</TableCell>
    </TableRow>
  </tbody>
</StyledTable>

Working examples covering Orchestrator selection, LV2V sessions, and payment integration are in `github.com/livepeer/livepeer-python-gateway/tree/main/examples`.

<CustomDivider />

## Discovery Patterns

On-chain Gateways use the Arbitrum contract registry for Orchestrator discovery. Off-chain SDK clients cannot query that registry without an Ethereum dependency. Three alternatives work for Python Gateway clients:

**Explicit Orchestrator list:** Pass Orchestrator URIs directly. Suitable for development or when operating alongside trusted Orchestrators.

```python theme={"theme":{"light":"github-light","dark":"dark-plus"}}
orchestrators = [
    "https://orch-1.example.com",
    "https://orch-2.example.com",
]
session = OrchestratorSession(
    orchestrator_url=orchestrators[0],
    signer_url="http://localhost:8936",
)
```

**Explorer API discovery:** Query the Livepeer Explorer API to get the active Orchestrator set, then filter by capability. This avoids an on-chain dependency while using current network data.

**Manual AI Service Registry query:** For AI-capable Orchestrators, the AI Service Registry on Arbitrum One lists registered Orchestrators with their capabilities. Query it via a standard Arbitrum RPC endpoint.

<CustomDivider />

## Use Cases

<StyledTable variant="bordered">
  <thead>
    <TableRow header>
      <TableCell header>Use case</TableCell>
      <TableCell header>Path</TableCell>
    </TableRow>
  </thead>

  <tbody>
    <TableRow>
      <TableCell>Python ML pipeline needing real-time AI inference</TableCell>
      <TableCell>livepeer-python-Gateway with remote signer</TableCell>
    </TableRow>

    <TableRow>
      <TableCell>Browser or mobile client streaming to the network</TableCell>
      <TableCell>Custom Gateway client in JS/TS with remote signer</TableCell>
    </TableRow>

    <TableRow>
      <TableCell>Edge device with constrained runtime</TableCell>
      <TableCell>Custom Gateway in any language, remote signer on a companion server</TableCell>
    </TableRow>

    <TableRow>
      <TableCell>Multi-tenant platform with per-user Orchestrator routing</TableCell>
      <TableCell>Custom Gateway implementing the protocol with shared signer pool</TableCell>
    </TableRow>
  </tbody>
</StyledTable>

<Note>
  The remote signer architecture requires coordination with the signer service for ticket signing on every job. The signer service must stay available; its unavailability blocks job submission.
</Note>

<CustomDivider />

## Related Pages

<CardGroup cols={2}>
  <Card title="Transcoding" icon="cpu" href="/v2/developers/build/video/transcoding-direct-quickstart" arrow horizontal>
    Direct segment transcoding: the core operation a Gateway performs.
  </Card>

  <Card title="BYOC Overview" icon="box" href="/v2/developers/build/compute/byoc/overview" arrow horizontal>
    Custom inference containers that Gateway clients route to.
  </Card>

  <Card title="Real-Time AI Overview" icon="video" href="/v2/developers/build/ai-and-agents/realtime-ai/overview" arrow horizontal>
    Cascade architecture the Python Gateway LiveVideoJob class targets.
  </Card>

  <Card title="AI Pipelines" icon="cpu" href="/v2/developers/build/ai-and-agents/ai-pipelines" arrow horizontal>
    Pipeline types and request schemas the Gateway submits to Orchestrators.
  </Card>
</CardGroup>
