---
id: api/cypress-api/arch
title: Cypress.arch
description: Cypress.arch returns you the CPU architecture name of the underlying OS.
section: api
source_path: docs/api/cypress-api/arch.mdx
version: 245b50e4ce1d3686f3ab1bd3a5e1e6e8edaa94b2
updated_at: '2026-09-17T18:14:18.180Z'
---
# Cypress.arch

`Cypress.arch` returns you the CPU architecture name of the underlying OS, as returned from Node's [`os.arch()`](https://nodejs.org/api/os.html#os_os_arch).

Even though Cypress runs in the browser, it automatically makes this property available for use in your tests.

## Syntax

```
Cypress.arch // 'x64'
```

## Examples

### CPU Architecture

```
it('has expected CPU architecture', () => {
  expect(Cypress.arch).to.be.oneOf(['x64', 'ia32'])
})
```

### Conditionals

```
it('does something differently', () => {
  if (Cypress.arch === 'x64') {
    cy.task('something')
  } else {
    cy.task('something else')
  }
})
```

## History

| Version | Changes |
| --- | --- |
| [1.1.3](/llm/markdown/app/references/changelog.md#1-1-3) | `Cypress.arch` added |
